<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="utf-8" %>

<%@page import="tree_util.Account" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
    String name = ((Account) session.getAttribute("account")).getRoleName();
    String tag;
    String tr;
    String show;
    String readonly;
    String disselect;
    String able;
    if (name.equals("privilege")) {
        tag = "none";
        tr = "none";
        readonly = "disabled=\"disabled\"";
        disselect = "disabled=\"disabled\"";
        //able = "disabled=\"disabled\"";
        able = "style = \"display:none\"";

    } else {
        tag = "inline-block";
        tr = "block";
        readonly = "";
        disselect = "";
        able = "";
    }

    //搜索按钮--特权用户、学生、指导老师
    if (name.equals("privilege") || name.equals("student") || name.equals("mentor")) {
        show = "style = \"display:block\"";
    } else {
        show = "style = \"display:none\"";
    }
%>


<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="edge"/>
    <meta name="author" content="Daliu"/>
    <meta name="keywords" content="长江上游珍稀特有鱼类保护信息管理系统、长江上游、珍稀特有鱼类、保护信息"/>
    <meta name="describe" content="长江上游珍稀特有鱼类保护信息管理系统"/>
    <title>长江上游珍稀特有鱼类保护信息管理系统</title>

    <link href="css/main.css" rel="stylesheet"/>
    <link href="css/jstree.min.css" rel="stylesheet"/>
    <link href="css/cysc.css" rel="stylesheet"/>
    <link href="css/show.css" rel="stylesheet"/>
    <link href="css/map.css" rel="stylesheet"/>
    <link rel="stylesheet" href="font-awesome/css/font-awesome.min.css">

    <script type="text/javascript">
        var userName = "<%=((Account)session.getAttribute("account")).getRoleName() %>";
    </script>
    <script src="http://libs.baidu.com/jquery/2.1.4/jquery.min.js"></script>
    <script type="text/javascript" src="js/jstree.min.js"></script>
    <script type="text/javascript" src="js/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="js/base.js"></script>
    <script type="text/javascript" src="js/cyscyz.js"></script>
    <script type="text/javascript" src="js/showPhoto.js"></script>
    <script type="text/javascript" src="js/dmyz.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {

            $("#tree-outer").height("100%");
            $("#tree-map2").click(function () {
                $("#tree-table").hide();
                $("#right-map").show();
                $("#right-map").load("map.jsp")
                $("#map-exit").show();
            })
            $("#map-exit").click(function () {
                $("#right-map").hide();
                $("#map-exit").hide();
                $("#tree-table").show();

            })
        });
        var td;
        if (userName === "privilege") {
            td = "<td style='display: none'>";

        }
        else {
            td = "<td>";
        }

        //显示浮游生物、底栖生物以及相应的优势种的信息表格函数
        jQuery.extend({
            showFea: function (a, b) {
                var content = [];
                $.ajax({
                    type: "get",
                    async: true,
                    url: "ShowMessage.action?monitID=" + b,
                    success: function (result) {
                        content = result.split(',');

                        $("#sed-fea").append(
                            "<tr>" +
                            "<td id='left' class='name'>" + a + content[0] + "</td>" +
                            "<td>" + content[3] + "</td>" +
                            "<td>" + content[2] + "</td>" +
                            "<td>" +
                            "<button id='showphoto'class='seephoto btn1 btn-primary'>查看</button>" +
                            "</td>" + td +
                            "<button id='alter'class='update btn1 btn-primary'>修改</button>" +
                            "&nbsp;<button id='delete'class='delete btn1 btn-danger'>删除</button>" +
                            "</td>" +
                            "<td>" +
                            "<button class='btn1 btn-primary see'>查看</button>" +
                            "</td>" +
                            "</tr>");
                    }
                });
            },
            showSed: function (a, b) {
                var content = [];
                $.ajax({
                    type: "get",
                    async: true,
                    url: "ShowMessage.action?monitID=" + b,
                    success: function (result) {
                        content = result.split(',');

                        $("#sed-fea").append(
                            "<tr><td id='left' class='name'>" + a + content[0] + "</td>" +
                            "<td>无</td>" +
                            "<td>无</td>" +
                            "<td>" +
                            "<button id='showphoto'class='seephoto btn1 btn-primary'>查看</button>" +
                            "</td>" + td +
                            "<button id='alter'class='update btn1 btn-primary'>修改</button>" +
                            "&nbsp;<button id='delete'class='delete btn1 btn-danger'>删除</button>" +
                            "</td>" +
                            "<td>无</td></tr>");
                    }
                });
            }
        });
        $(document).ready(function () {
                //<---------------------孙梦海增加------------------>
                //点击浮游生物、底栖生物表格优势种一栏查看弹出相应优势种子表格
                $("#sed-fea").on("click", ".see", function () { //动态生成的按钮需要用on()方法
                    //清除动态生成的优势种子表格
                    $("#pfea tr:not(:first)").remove();
                    var parent = $(this).parent().siblings(".name").text().substring(5);
                    $(".Fname").text($(this).parent().siblings(".name").text());
                    $("#pfeature-table").show();
                    var MonitArr = [];
                    $.ajax({
                        type: "get",
                        async: true,
                        url: "query_next_dot.action?monitID=" + parent,
                        success: function (result) {
                            if (result == "01") {
                                alert("往后索引有待开发！");
                                return;
                            } else if (result == "00") {
                                alert("发生错误，请稍后再试！");
                                return;
                            } else if (result == "" || result == null) {
                                alert("该生物没有优势种！");
                            } else {
                                MonitArr = result.split(',');
                                for (var ix = 0; ix < 5; ix++) {

                                    var content = [];
                                    if (MonitArr[ix].substring(0, 3) == "PZO") {
                                        var str = "优势浮游动物:";
                                        $.ajax({
                                            type: "get",
                                            async: true,
                                            url: "ShowMessage.action?monitID=" + MonitArr[ix],
                                            success: function (result) {
                                                content = result.split(',');
                                                $("#pfea").append(
                                                    "<tr>" +
                                                    "<td id='left' class='name'>" + str + content[0] + "</td>" +
                                                    "<td>" + content[1] + "</td>" +
                                                    "<td>" + content[4] + "</td>" +
                                                    "<td>" + content[3] + "</td>" +
                                                    "<td>" +
                                                    "<button id='showphoto'class='seephoto btn1 btn-primary'>查看</button>" +
                                                    "</td>" + td +
                                                    "<button id='alter'class='update btn1 btn-primary'>修改</button>" +
                                                    "&nbsp;<button id='delete'class='delete btn1 btn-danger'>删除</button>" +
                                                    "</td>" +
                                                    "</tr>");
                                            }
                                        });
                                    } else if (MonitArr[ix].substring(0, 3) == "PPH") {
                                        var str = "优势浮游植物:";
                                        $.ajax({
                                            type: "get",
                                            async: true,
                                            url: "ShowMessage.action?monitID=" + MonitArr[ix],
                                            success: function (result) {
                                                content = result.split(',');
                                                $("#pfea").append(
                                                    "<tr>" +
                                                    "<td id='left' class='name'>" + str + content[0] + "</td>" +
                                                    "<td>" + content[1] + "</td>" +
                                                    "<td>" + content[4] + "</td>" +
                                                    "<td>" + content[3] + "</td>" +
                                                    "<td>" +
                                                    "<button id='showphoto'class='seephoto btn1 btn-primary'>查看</button>" +
                                                    "</td>" + td +
                                                    "<button id='alter'class='update btn1 btn-primary'>修改</button>" +
                                                    "&nbsp;<button id='delete'class='delete btn1 btn-danger'>删除</button>" +
                                                    "</td>" +
                                                    "</tr>");
                                            }
                                        });
                                    } else if (MonitArr[ix].substring(0, 3) == "PBE") {
                                        var str = "优势底栖生物:";
                                        $.ajax({
                                            type: "get",
                                            async: true,
                                            url: "ShowMessage.action?monitID=" + MonitArr[ix],
                                            success: function (result) {
                                                content = result.split(',');
                                                $("#pfea").append(
                                                    "<tr>" +
                                                    "<td id='left' class='name'>" + str + content[0] + "</td>" +
                                                    "<td>" + content[1] + "</td>" +
                                                    "<td>" + content[4] + "</td>" +
                                                    "<td>" + content[3] + "</td>" +
                                                    "<td>" +
                                                    "<button id='showphoto'class='seephoto btn1 btn-primary'>查看</button>" +
                                                    "</td>" + td +
                                                    "<button id='alter'class='update btn1 btn-primary'>修改</button>" +
                                                    "&nbsp;<button id='delete'class='delete btn1 btn-danger'>删除</button>" +
                                                    "</td>" +
                                                    "</tr>");
                                            }
                                        });
                                    }
                                }
                            }
                        }
                    });
//    			添加浮游生物、底栖生物优势种
                    $("#add-surface-pfeature").unbind("click").bind("click", function () {
                        //alert("-----------"+parent);
                        $(".submit").show();
                        $(".alter").hide();
                        //清除前一次验证的错误信息
                        $(".modal-form input").each(function () {
                            $(this).val("").removeClass("error");
                        });
                        $("#pfeature_check").data('validator').resetForm();
                        if (parent.substring(0, 3) == "ZOO") {
                            $(".title").text("添加优势浮游动物");
                        }
                        else if (parent.substring(0, 3) == "PHY") {
                            $(".title").text("添加优势浮游植物");
                        }
                        else if (parent.substring(0, 3) == "BEN") {
                            $(".title").text("添加优势底栖生物");
                        }
                        $("#modal-pfeature").show();

                        $(".submit").unbind("click").bind("click", function () {
                            //  alert("-----------"+parent);
                            if (parent.substring(0, 3) == "ZOO") {
                                if ($("#pfeature-Quality").val() == "") {
                                    $("#pfeature-Quality").val("0")
                                }
                                if ($("#pfeature-Biomass").val() == "") {
                                    $("#pfeature-Biomass").val("0")
                                }
                                var formData = new FormData($("#pfeature_check")[0]);
                                var url = "AddDominantZooplanktonSpecies.action";
                                formData.append("flag", "insert");
                                formData.append("FatherText", parent);
                                //alert(formData);
                                if ($("#pfeature-Photo").val().length > 100 || $("#pfeature-Photo").val().length <= 0) {
                                    formData.append("isNull", "");
                                }
                                else formData.append("isNull", "有");
                                $.ajax({
                                    url: url,
                                    type: 'POST',
                                    data: formData,
                                    async: true,
                                    cache: false,
                                    contentType: false,
                                    processData: false,
                                    success: function (result) {
                                        if (result == "error") {
                                            alert("添加失败！");
                                        } else if (result == "null") {
                                            alert("请填写必填项！");
                                            $("#pfeature-Quality").val("");
                                            $("#pfeature-Biomass").val("");
                                        } else {
                                            alert("添加成功！");
                                            if ($("#pfea tr").length < 6) {
                                                $("#pfea").append(
                                                    "<tr>" +
                                                    "<td id='left' class='name'>" + "优势浮游动物:" + result + "</td>" +
                                                    "<td>" + $("#pfeature-Name").val() + "</td>" +
                                                    "<td>" + $("#pfeature-Biomass").val() + "</td>" +
                                                    "<td>" + $("#pfeature-Quality").val() + "</td>" +
                                                    "<td>" +
                                                    "<button id='showphoto'class='seephoto btn1 btn-primary'>查看</button>" +
                                                    "</td>" +
                                                    "<td>" +
                                                    "<button id='alter'class='update btn1 btn-primary'>修改</button>" +
                                                    "&nbsp;<button id='delete'class='delete btn1 btn-danger'>删除</button>" +
                                                    "</td>" +
                                                    "</tr>");
                                            }

                                            $(".modal").hide();
                                        }
                                    }
                                });
                            }

                            else if (parent.substring(0, 3) == "PHY") {
                                if ($("#pfeature-Quality").val() == "") {
                                    $("#pfeature-Quality").val("0")
                                }
                                if ($("#pfeature-Biomass").val() == "") {
                                    $("#pfeature-Biomass").val("0")
                                }
                                var formData = new FormData($("#pfeature_check")[0]);
                                var url = "AddDominantPhytoplanktonSpecies.action";
                                formData.append("flag", "insert");
                                formData.append("FatherText", parent);
                                //alert(formData);
                                if ($("#pfeature-Photo").val().length > 100 || $("#pfeature-Photo").val().length <= 0) {
                                    formData.append("isNull", "");
                                }
                                else formData.append("isNull", "有");
                                $.ajax({
                                    url: url,
                                    type: 'POST',
                                    data: formData,
                                    async: true,
                                    cache: false,
                                    contentType: false,
                                    processData: false,
                                    success: function (result) {
                                        if (result == "error") {
                                            alert("添加失败！");
                                        } else if (result == "null") {
                                            alert("请填写必填项！");
                                            $("#pfeature-Quality").val("");
                                            $("#pfeature-Biomass").val("");
                                        } else {
                                            alert("添加成功！");
                                            if ($("#pfea tr").length < 6) {
                                                $("#pfea").append(
                                                    "<tr>" +
                                                    "<td id='left' class='name'>" + "优势浮游植物:" + result + "</td>" +
                                                    "<td>" + $("#pfeature-Name").val() + "</td>" +
                                                    "<td>" + $("#pfeature-Biomass").val() + "</td>" +
                                                    "<td>" + $("#pfeature-Quality").val() + "</td>" +
                                                    "<td>" +
                                                    "<button id='showphoto'class='seephoto btn1 btn-primary'>查看</button>" +
                                                    "</td>" +
                                                    "<td>" +
                                                    "<button id='alter'class='update btn1 btn-primary'>修改</button>" +
                                                    "&nbsp;<button id='delete'class='delete btn1 btn-danger'>删除</button>" +
                                                    "</td>" +
                                                    "</tr>");
                                            }
                                            $(".modal").hide();
                                        }
                                    }
                                });
                            }
                            else if (parent.substring(0, 3) == "BEN") {
                                if ($("#pfeature-Quality").val() == "") {
                                    $("#pfeature-Quality").val("0")
                                }
                                if ($("#pfeature-Biomass").val() == "") {
                                    $("#pfeature-Biomass").val("0")
                                }
                                var formData = new FormData($("#pfeature_check")[0]);
                                var url = "AddDominantBenthosSpecies.action";
                                formData.append("flag", "insert");
                                formData.append("FatherText", parent);
                                //alert(formData);
                                if ($("#pfeature-Photo").val().length > 100 || $("#pfeature-Photo").val().length <= 0) {
                                    formData.append("isNull", "");
                                }
                                else formData.append("isNull", "有");
                                $.ajax({
                                    url: url,
                                    type: 'POST',
                                    data: formData,
                                    async: true,
                                    cache: false,
                                    contentType: false,
                                    processData: false,
                                    success: function (result) {
                                        if (result == "error") {
                                            alert("添加失败！");
                                        } else if (result == "null") {
                                            alert("请填写必填项！");
                                            $("#pfeature-Quality").val("");
                                            $("#pfeature-Biomass").val("");
                                        } else {
                                            alert("添加成功！");
                                            if ($("#pfea tr").length < 6) {
                                                $("#pfea").append(
                                                    "<tr>" +
                                                    "<td id='left' class='name'>" + "优势底栖生物:" + result + "</td>" +
                                                    "<td>" + $("#pfeature-Name").val() + "</td>" +
                                                    "<td>" + $("#pfeature-Biomass").val() + "</td>" +
                                                    "<td>" + $("#pfeature-Quality").val() + "</td>" +
                                                    "<td>" +
                                                    "<button id='showphoto'class='seephoto btn1 btn-primary'>查看</button>" +
                                                    "</td>" +
                                                    "<td>" +
                                                    "<button id='alter'class='update btn1 btn-primary'>修改</button>" +
                                                    "&nbsp;<button id='delete'class='delete btn1 btn-danger'>删除</button>" +
                                                    "</td>" +
                                                    "</tr>");
                                            }
                                            $(".modal").hide();
                                        }
                                    }
                                });
                            }
                        });
                    });
                });

//------------------------------------------------------------------------------------------
                //由于权限判断所以把toolAndFish.js放在这
                var trArray = ["a", "b", "c", "d", "e"];
                var pageNumber0 = 0;
                var pageNumber1 = 0;
                var pageNumber2 = 0;
                var pageNumber3 = 0;
                var selectCTHID;  //这个记录此时被选中的渔获物，在分页时用到

                function updateTool(data) {
                    $("#toolTable").css({"display": "table"});
                    $("#addTool").css({"display": "none"});
                    $("#toolTable td").each(function (i, n) {
                        if (i > 7) return;
                        $(this).html(data[i]);
                    });
                }

                function clearAllCTHData(tableID) {
                    var select;
                    for (var i = 0; i < 5; i++) {
                        select = trArray[i];
                        $("#" + select + " td").each(function (i, n) {
                            if (i <= 4) {
                                $(this).html("");
                            }
                        });
                        $("#" + select + " button").each(function (i, n) {
                            $(this).css({"display": "none"});
                        });
                    }
                }

                function clearAllFSSData() {
                    var select;
                    for (var j = 0; j < 5; j++) {
                        select = trArray[j];
                        $("#Fishes #" + select + " td").each(function (i, n) {
                            if (i <= 4)
                                $(this).html("");
                        });
                        $("#Fishes #" + select + " button").each(function (i, n) {
                            $(this).css({"display": "none"});
                        });
                    }
                }

                function clearAllFSEData() {
                    var select;
                    for (var j = 0; j < 5; j++) {
                        select = trArray[j];
                        $("#FishEggs #" + select + " td").each(function (i, n) {
                            if (i <= 5)
                                $(this).html("");
                        });
                        $("#FishEggs #" + select + " button").each(function (i, n) {
                            $(this).css({"display": "none"});
                        });
                    }
                }

//    			<--------------------------孙梦海增加------------------------------->
                function clearAllPFEAData() {
                    $("#pfea tr:not(tr:eq(0))").remove();
                }

                function addPFEAData(data, pname) {
                    var dataArray = [];
                    var PFEAData = [];
                    dataArray = data.split("_");
                    for (var j = 0; j < 5; j++) {
                        PFEAData = dataArray[j].split(",");
//    					alert(PFEAData);
                        $("#pfea").append(
                            "<tr>" +
                            "<td id='left' class='name'>" + pname + ":" + PFEAData[0] + "</td>" +
                            "<td>" + PFEAData[1] + "</td>" +
                            "<td>" + PFEAData[4] + "</td>" +
                            "<td>" + PFEAData[3] + "</td>" +
                            "<td>" +
                            "<button id='showphoto'class='seephoto btn1 btn-primary'>查看</button>" +
                            "</td>" + td +
                            "<button id='alter'class='update btn1 btn-primary'>修改</button>" +
                            "&nbsp;<button id='delete'class='delete btn1 btn-danger'>删除</button>" +
                            "</td>" +
                            "</tr>");
                    }
                }

//    			<--------------------------孙梦海增加------------------------------->

                function addCTHData(data) {
                    var dataArray = [];
                    var CTHData = [];
                    dataArray = data.split("_");
                    for (var j = 0; j < dataArray.length; j++) {
                        CTHData = dataArray[j].split(",");
                        $("#" + trArray[j] + " td").each(function (i, n) {
                            if (i >= 5) return;
                            if (i == 0 || i == 1) {
                                $(this).html(CTHData[i]);
                                return;
                            }
                            $(this).html(CTHData[i + 1]);
                        });

                        $("#" + trArray[j] + " button").each(function (i, n) {
                            $(this).css({"display": "inline-block"});
                        });
                    }
                }

                function addFSSData(data) {
                    var dataArray = [];
                    var FSSData = [];
                    dataArray = data.split("_");
                    for (var j = 0; j < dataArray.length; j++) {
                        FSSData = dataArray[j].split(",");
                        $("#Fishes #" + trArray[j] + " td").each(function (i, n) {
                            if (i >= 5) return;
                            if (i == 0) {
                                $(this).html(FSSData[i]);
                                return;
                            }
                            else $(this).html(FSSData[i + 1]);
                        });

                        $("#Fishes #" + trArray[j] + " button").each(function (i, n) {
                            console.log("                " + i);
                            $(this).css({"display": "inline-block"});
                        });
                    }
                }

                function addFSEData(data) {
                    var dataArray = [];
                    var FSEData = [];
                    dataArray = data.split("_");
                    for (var j = 0; j < dataArray.length; j++) {
                        FSEData = dataArray[j].split(",");
                        $("#FishEggs #" + trArray[j] + " td").each(function (i, n) {
                            if (i > 5) return;
                            if (i == 0) {
                                $(this).html(FSEData[i]);
                                return;
                            }
                            else $(this).html(FSEData[i + 1]);
                        });

                        $("#FishEggs #" + trArray[j] + " button").each(function (i, n) {
                            console.log("                " + i);
                            $(this).css({"display": "inline-block"});
                        });
                    }
                }

                function hideButton(div, select) {
                    $("#" + div + " #" + select + " button").each(function (i, n) {
                        $(this).css({"display": "none"});
                    });
                }

                function showButton(div, select) {
                    $("#" + div + " #" + select + " button").each(function (i, n) {
                        $(this).css({"display": "inline-block"});
                    });
                }

                function updateDetection(data, select) {
                    $("#" + select + " td").each(function (i, n) {
                        if (i > 3) return;
                        $(this).html(data[i]);
                    });
                }

                function updateGet(data, select) {
                    $("#" + select + " td").each(function (i, n) {
                        if (i > 4) return;
                        $(this).html(data[i]);
                    });
                }

                function updateFish(data, select) {
                    $("#fishesDiv #" + select + " td").each(function (i, n) {
                        if (i > 4) return;
                        $(this).html(data[i]);
                    });
                }

                function updateFishEP(data, select) {
                    $("#fishEPDiv #" + select + " td").each(function (i, n) {
                        if (i > 4) return;
                        $(this).html(data[i]);
                    });
                }

                function updateFishEggs(data, select) {
                    $("#FishEggsDiv #" + select).show();
                    $("#FishEggsDiv #" + select + " td").each(function (i, n) {
                        if (i > 5) return;
                        $(this).html(data[i]);
                    });
                }

                function updateMolecule(data, select) {
                    $("#moleculeDiv #" + select).show();
                    $("#moleculeDiv #" + select + " td").each(function (i, n) {
                        if (i > 3) return;
                        $(this).html(data[i]);
                    });
                }

                function updateColony(data, select) {
                    $("#colonyDiv #" + select + " td").each(function (i, n) {
                        if (i > 10) return;
                        $(this).html(data[i]);
                    });
                }

                function updatePrim(data, select) {
                    $("#primDiv #" + select + " td").each(function (i, n) {
                        if (i > 3) return;
                        $(this).html(data[i]);
                    });
                }

                function updateSample(data, select) {
                    $("#sampleDiv #" + select + " td").each(function (i, n) {
                        if (i > 2) return;
                        $(this).html(data[i]);
                    });
                }

                    /*插入显示水质监测数据*/
                var wdArray = ["wa", "wb", "wc", "wd", "we"];

                function insertDetection(data) {
                    var select = "";
                    for (var i = 0; i < 5; i++) {
                        if ($("#" + wdArray[i] + " td:first-child").html().length == 0) {
                            select = wdArray[i];
                            break;
                        }
                    }

                    if (select == "") return;
                    $("#" + select + " td").each(function (i, n) {
                        if (i > 3) return;
                        $(this).html(data[i]);
                    });

                    $("#" + select + " button").each(function (i, n) {
                        $(this).css({"display": "inline-block"});
                    });

                    $("#" + select).show();
                }

                    /*插入显示渔获物*/
                function insertCatche(data) {
                    var select = "";
                    for (var i = 0; i < 5; i++) {
                        if ($("#" + trArray[i] + " td:first-child").html().length == 0) {
                            select = trArray[i];
                            break;
                        }
                    }
                    if (select == "") return;
                    $("#" + select + " td").each(function (i, n) {
                        if (i > 4) return;
                        $(this).html(data[i]);
                    });

                    $("#" + select + " button").each(function (i, n) {
                        $(this).css({"display": "inline-block"});
                    });

                    $("#" + select).show();

                }

                    /*插入显示鱼样本*/
                function insertFish(data) {
                    var select = "";
                    for (var i = 0; i < 5; i++) {
                        if ($("#fishesDiv #" + trArray[i] + " td:first-child").html().length == 0) {
                            select = trArray[i];
                            break;
                        }
                    }
                    if (select == "") return;
                    $("#fishesDiv #" + select).show();
                    $("#fishesDiv #" + select + " td").each(function (i, n) {
                        if (i > 4) return;
                        $(this).html(data[i]);
                    });

                    $("#fishesDiv #" + select + " button").each(function (i, n) {
                        $(this).css({"display": "inline-block"});
                    });
                }

                    /*插入显示鱼体环境污染物*/
                function insertFishEP(data) {
                    var select = "";
                    for (var i = 0; i < 5; i++) {
                        if ($("#fishEPDiv #" + trArray[i] + " td:first-child").html().length == 0) {
                            select = trArray[i];
                            break;
                        }
                    }
                    if (select == "") return;
                    $("#fishEPDiv #" + select).show();
                    $("#fishEPDiv #" + select + " td").each(function (i, n) {
                        if (i > 4) return;
                        $(this).html(data[i]);
                    });

                    $("#fishEPDiv #" + select + " button").each(function (i, n) {
                        $(this).css({"display": "inline-block"});
                    });
                }

                    /*插入显示卵样本*/
                function insertFishEggs(data) {
                    var select = "";
                    for (var i = 0; i <= 5; i++) {
                        if ($("#FishEggsDiv #" + trArray[i] + " td:first-child").html().length == 0) {
                            select = trArray[i];
                            break;
                        }
                    }
                    if (select == "") return;
                    $("#FishEggsDiv #" + select).show();
                    $("#FishEggsDiv #" + select + " td").each(function (i, n) {
                        if (i > 5) return;
                        $(this).html(data[i]);
                    });
                    showButton("FishEggsDiv", select);
                }

                    /*插入显示分子样本基础信息*/
                function insertMolecule(data) {
                    var select = "";
                    for (var i = 0; i <= 5; i++) {
                        if ($("#moleculeDiv #" + trArray[i] + " td:first-child").html().length == 0) {
                            select = trArray[i];
                            break;
                        }
                    }
                    if (select == "") return;
                    $("#moleculeDiv #" + select).show();
                    $("#moleculeDiv #" + select + " td").each(function (i, n) {
                        if (i > 3) return;
                        $(this).html(data[i]);
                    });
                    showButton("moleculeDiv", select);
                }

                    /*插入显示引物*/
                function insertPrim(data) {
                    var select = "";
                    for (var i = 0; i < 5; i++) {
                        if ($("#primDiv #" + trArray[i] + " td:first-child").html().length == 0) {
                            select = trArray[i];
                            break;
                        }
                    }
                    if (select == "") return;
                    $("#primDiv #" + select).show();
                    $("#primDiv #" + select + " td").each(function (i, n) {
                        if (i > 3) return;
                        $(this).html(data[i]);
                    });

                    $("#primDiv #" + select + " button").each(function (i, n) {
                        $(this).css({"display": "inline-block"});
                    });
                }

                    /*插入显示单样本信息*/
                function insertSample(data) {
                    var select = "";
                    for (var i = 0; i < 5; i++) {
                        if ($("#sampleDiv #" + trArray[i] + " td:first-child").html().length == 0) {
                            select = trArray[i];
                            break;
                        }
                    }
                    if (select == "") return;
                    $("#sampleDiv #" + select).show();
                    $("#sampleDiv #" + select + " td").each(function (i, n) {
                        if (i > 2) return;
                        $(this).html(data[i]);
                    });

                    $("#sampleDiv #" + select + " button").each(function (i, n) {
                        $(this).css({"display": "inline-block"});
                    });
                }
                    /*插入显示单群体计算数据*/
                function insertColony(data) {
                    var select = "";
                    for (var i = 0; i <= 5; i++) {
                        if ($("#colonyDiv #" + trArray[i] + " td:first-child").html().length == 0) {
                            select = trArray[i];
                            break;
                        }
                    }
                    if (select == "") return;
                    $("#colonyDiv #" + select).show();
                    $("#colonyDiv #" + select + " td").each(function (i, n) {
                        if (i > 11) return;
                        $(this).html(data[i]);
                    });
                    showButton("colonyDiv", select);
                }

                    /*删除节点*/
                function deleteNode(ID) {
                    var url = "DeleteMonit.action";
                    if (confirm("您确定删除该条数据吗？")) {
                        ////接口
                        var par = {};
                        par["monitID"] = ID;
                        $.ajax({
                            type: "post",
                            async: true,
                            url: url,
                            data: par,
                            success: function (result) {
                                if (result == "error") {
                                    alert("删除失败！");
                                } else {
                                    alert("删除成功！");
                                    $("#toolTable").css({"display": "none"});
                                    $("#addTool").css({"display": "inline-block"});
                                }
                            }
                        });
                    }
                }

                $("#addTool").click(function () {
                    $(".title").text("添加网具");
                    $("#toolSumbit").text("确认提交");
                    $("#showTool").css({"display": "block"});
                });

                $("#closeTool").click(function () {
                    $("#showTool").css({"display": "none"});
                });
                    /*水质*/
                $("#addDetection").click(function () {
                    $(".title").text("添加水质监测数据");
                    $("#detectionSubmit").text("确认提交");
                    $("#showDetection").css({"display": "block"});

                    $("#showDetection input").each(function (i, n) {
                        $(this).val("");
                    });
                });

                $("#closeDetection").click(function () {
                    $("#showDetection").css({"display": "none"});

                });
                    /*渔获物*/
                $("#addGet").click(function () {
                    $(".title").text("添加渔获物");
                    $("#getSumbit").text("确认提交");
                    $("#showGet").css({"display": "block"});

                    $("#showGet input").each(function (i, n) {
                        $(this).val("");
                    });
                });

                $("#closeGet").click(function () {
                    $("#showGet").css({"display": "none"});

                });

                $("#closeFishes").click(function () {
                    $("#showFish").css({"display": "none"});
                });

                $("#closeFishEP").click(function () {
                    $("#showFishEP").css({"display": "none"});
                });

                $("#closeFishEggs").click(function () {
                    $("#showFishEggs").css({"display": "none"});
                });

                $("#closeMolecule").click(function () {
                    $("#showMolecule").css({"display": "none"});
                });

                $("#closePrim").click(function () {
                    $("#showPrim").css({"display": "none"});
                });

                $("#closeSample").click(function () {
                    $("#showSample").css({"display": "none"});
                });

                $("#closeColony").click(function () {
                    $("#showColony").css({"display": "none"});
                });

                var toolID;
                $("#updateTool").click(function () {
                    $(".title").text("修改网具信息");
                    $("#toolSumbit").text("确认修改");
                    $("#showTool").css({"display": "block"});
                    var Mon = [];

                    $("#toolTable td").each(function (i, n) {
                        if (i > 7) return;
                        Mon[i] = $(this).html();
                    });
                    toolID = Mon[0];
                    $("#showTool input").each(function (i, n) {
                        if (i > 6) return;
                        $(this).val(Mon[i + 1]);
                    });
                });
                //记录选择修改删除的行号
                var trID;
                    /*更改水质监测信息*/
                var detectionID;
                $(document).on("click", "#updateDetection,#updateDetection1,#updateDetection2,#updateDetection3,#updateDetection4", function () {
                    $(".title").text("修改水质监测信息");
                    //substring得到修改行号
                    var substring = $(this).attr("ID").substring(15, 16);
                    var index = 0;
                    if (substring != null) index = Number(substring);

                    var selectTr = wdArray[index];
                    if ($("#" + selectTr + " td:first-child").html().length == 0) return;
                    trID = selectTr;
                    $("#detectionSubmit").text("确认修改");
                    $("#showDetection").css({"display": "block"});
                    //Mon数组存修改行的各列信息
                    var Mon = [];
                    $("#" + selectTr + " td").each(function (i, n) {
                        if (i > 3) return;
                        Mon[i] = $(this).html();
                    });
                    detectionID = parseInt(Mon[0]);
                    $("#showDetection input").each(function (i, n) {
                        if (i > 3) return;
                        $(this).val(Mon[i + 1]);
                    });
                });
                    /*删除水质监测信息*/
                $(document).on("click", "#detectionDelete,#detectionDelete1,#detectionDelete2,#detectionDelete3,#detectionDelete4", function () {
                    var substring = $(this).attr("ID").substring(15, 16);
                    var index = 0;
                    if(substring != null) index = Number(substring);
                    alert(wdArray[index]);
                    var selectTr = wdArray[index];
                    var ID = $("#" + selectTr + " td:first-child").html();
                    var url = "DeleteMonit.action";
                    if (ID.length == 0) return;
                    var par = {};
                    par["monitID"] = "WDD" + ID;
                    if (confirm("您确定删除该条数据吗？")) {
                        $.ajax({
                            type: "post",
                            async: true,
                            url: url,
                            data: par,
                            success: function (result) {
                                if (result == "error") {
                                    alert("删除失败！");
                                } else {
                                    alert("删除成功！");
                                    var data = [];
                                    var target = "";
                                    for (var i = 0; i < trArray.length; i++) {
                                        if ($("#" + wdArray[i] + " td:first-child").html().length == 0) {
                                            target = wdArray[i - 1];
                                            if (target == selectTr) {
                                                $("#" + target + " td").each(function (i, n) {
                                                    if (i > 3) return;
                                                    $(this).html("");
                                                });
                                                $("#" + target + " button").each(function (i, n) {
                                                    $(this).css({"display": "none"});
                                                })
                                                $("#" + target).hide();
                                                return;
                                            }
                                            break;
                                        }
                                    }
                                    if (target.length == 0) target = "we";
                                    $("#" + target + " td").each(function (i, n) {
                                        if (i > 3) return;
                                        data[i] = $(this).html();
                                        $(this).html("");
                                    });
                                    $("#" + target).hide();
                                    updateDetection(data, selectTr);
                                }
                            }
                        });
                    }
                });
                    /*更改渔获物*/
                var getID;
                $(document).on("click", "#updateGet,#updateGet1,#updateGet2,#updateGet3,#updateGet4", function () {
                    $(".title").text("修改渔获物信息");
                    var substring = $(this).attr("ID").substring(9, 10);
                    var index;
                    if (substring == null) index = 0;
                    else index = Number(substring);
                    var selectTr = trArray[index];
                    if ($("#" + selectTr + " td:first-child").html().length == 0) return;
                    trID = selectTr;
                    console.log(selectTr + "                  =======================  " + substring);
                    $("#getSumbit").text("确认修改");
                    $("#showGet").css({"display": "block"});
                    var Mon = [];
                    $("#" + selectTr + " td").each(function (i, n) {
                        if (i > 4) return;
                        Mon[i] = $(this).html();
                    });
                    getID = Mon[0];
                    $("#showGet input").each(function (i, n) {
                        if (i > 3) return;
                        $(this).val(Mon[i + 1]);
                    });
                });
                    /*删除渔获物*/
                $(document).on("click", "#getDelete0,#getDelete1,#getDelete2,#getDelete3,#getDelete4", function () {
                    var substring = $(this).attr("ID").substring(9, 10);
                    var index;
                    index = Number(substring);
                    var selectTr = trArray[index];
                    var ID = $("#" + selectTr + " td:first-child").html();
                    var url = "DeleteMonit.action";
                    if (ID.length == 0) return;
                    var par = {};
                    par["monitID"] = ID;
                    if (confirm("您确定删除该条数据吗？")) {
                        $.ajax({
                            type: "post",
                            async: true,
                            url: url,
                            data: par,
                            success: function (result) {
                                alert(result);
                                if (result == "error") {
                                    alert("删除失败！");
                                } else {
                                    alert("删除成功！");
                                    var data = [];
                                    var target = "";
                                    $("#primDiv").css({"display": "none"});
                                    $("#moleculeDiv").css({"display": "none"});
                                    $("#fishEPDiv").css({"display": "none"});
                                    $("#sampleDiv").css({"display": "none"});
                                    $("#fishesDiv").css({"display": "none"});
                                    $("#FishEggsDiv").css({"display": "none"});
                                    $("#colonyDiv").css({"display": "none"});
                                    for (var i = 0; i < trArray.length; i++) {
                                        if ($("#" + trArray[i] + " td:first-child").html().length == 0) {
                                            target = trArray[i - 1];
                                            if (target == selectTr) {
                                                $("#" + target + " td").each(function (i, n) {
                                                    if (i > 4) return;
                                                    $(this).html("");
                                                });
                                                $("#" + target + " button").each(function (i, n) {
                                                    $(this).css({"display": "none"});
                                                })
                                                $("#" + target).hide();
                                                return;
                                            }
                                            break;
                                        }
                                    }
                                    if (target.length == 0) target = "e";
                                    $("#" + target + " td").each(function (i, n) {
                                        if (i > 4) return;
                                        data[i] = $(this).html();
                                        $(this).html("");
                                    });
                                    $("#" + target).hide();
                                    updateGet(data, selectTr);

                                }
                            }
                        });
                    }

                });
                    /*查询鱼样本*/
                $(document).on("click", "#seeFishes0,#seeFishes1,#seeFishes2,#seeFishes3,#seeFishes4", function () {
                    var substring = $(this).attr("ID").substring(9, 10);
                    var index;
                    index = Number(substring);
                    var selectTr = trArray[index];
                    var ID = $("#" + selectTr + " td:first-child").html();
                    if (ID.length == 0) return;
                    selectCTHID = ID;
                    for (var j = 0; j < 5; j++) {
                        $("#Fishes #" + trArray[j] + " td").each(function (i, n) {
                            if (i > 4) return;
                            $(this).html("");
                        });
                        $("#Fishes #" + trArray[j]).hide();
                    }
                    $("#Fishes button").each(function (i, n) {
                        $(this).css({"display": "none"});
                    });
                    $.ajax({
                        type: "get",
                        async: true,
                        url: "AllMonit.action?monitID=" + ID,
                        success: function (result) {
                            if (result == "00") {
                                alert("发生错误，请稍后再试！")
                                return;
                            } else if (result.indexOf("FSS") < 0) {
                                alert("没有数据");
                            } else {
                                MonitArr = result.split(',');

                                $("#fishesDiv").css({"display": "block"});
                                for (var i = 0; i < MonitArr.length; i++) {
                                    var select = trArray[i];
                                    if (MonitArr[i].substring(0, 3) == "FSS"){
                                        $.ajax({
                                            type: "get",
                                            url: "ShowMessage.action?monitID=" + MonitArr[i],
                                            async: false,
                                            success: function (result) {
                                                var Mon = result.split(",");
                                                $("#fishesDiv #" + select).show();
                                                $("#fishesDiv #" + select + " td").each(function (i, n) {
                                                    if (i > 4) return;
                                                    if (i == 0) {
                                                        $(this).html(Mon[i]);
                                                        return;
                                                    }
                                                    else $(this).html(Mon[i + 1]);
                                                });

                                                $("#fishesDiv #" + select + " button").each(function (i, n) {
                                                    $(this).css({"display": "inline-block"});
                                                });

                                            }
                                        });
                                    }
                                }
                            }
                        }
                    });
                });
                    /*查询鱼体环境污染物*/
                $(document).on("click", "#seeFishEP,#seeFishEP1,#seeFishEP2,#seeFishEP3,#seeFishEP4", function () {
                    var substring = $(this).attr("ID").substring(9, 10);
                    var index = 0;
                    if (substring != null) index = Number(substring);
                    var selectTr = trArray[index];
                    var ID = $("#fishesDiv #" + selectTr + " td:first-child").html();
                    if (ID.length == 0) return;
                    selectCTHID = ID;
                    for (var j = 0; j < 5; j++) {
                        $("#fishEPDiv #" + trArray[j] + " td").each(function (i, n) {
                            if (i > 4) return;
                            $(this).html("");
                        });
                        $("#fishEPDiv #" + trArray[j]).hide();
                    }
                    $("#FishEP button").each(function (i, n) {
                        $(this).css({"display": "none"});
                    });
                    $.ajax({
                        type: "get",
                        async: true,
                        url: "AllMonit.action?monitID=" + ID,
                        success: function (result) {
                            if (result == "00") {
                                alert("发生错误，请稍后再试！")
                                return;
                            } else if (result.indexOf("FEP") < 0) {
                                alert("没有数据");
                            } else {
                                MonitArr = result.split(',');

                                $("#fishEPDiv").css({"display": "block"});
                                for (var i = 0; i < MonitArr.length; i++) {
                                    var select = trArray[i];
                                    if (MonitArr[i].substring(0, 3) == "FEP") {
                                        $.ajax({
                                            type: "get",
                                            url: "ShowMessage.action?monitID=" + MonitArr[i],
                                            async: false,
                                            success: function (result) {
                                                var Mon = result.split(",");
                                                $("#fishEPDiv #" + select).show();
                                                $("#fishEPDiv #" + select + " td").each(function (i, n) {
                                                    if (i > 4) return;
                                                    else $(this).html(Mon[i]);
                                                });

                                                $("#fishEPDiv #" + select + " button").each(function (i, n) {
                                                    $(this).css({"display": "inline-block"});
                                                });
                                            }
                                        });
                                    }
                                }
                            }
                        }
                    });
                });
                    /*查询卵样本*/
                $(document).on("click", "#seeFishEgg0,#seeFishEgg1,#seeFishEgg2,#seeFishEgg3,#seeFishEgg4", function () {
                    var substring = $(this).attr("ID").substring(10, 11);
                    var index;
                    index = Number(substring);
                    var selectTr = trArray[index];
                    var ID = $("#" + selectTr + " td:first-child").html();
                    if (ID.length == 0) return;
                    selectCTHID = ID;
                    for (var j = 0; j < 5; j++) {
                        $("#FishEggsDiv #" + trArray[j] + " td").each(function (i, n) {
                            if (i > 5) return;
                            $(this).html("");
                        });
                        $("#FishEggsDiv #" + trArray[j]).hide();
                    }
                    $("#FishEggs button").each(function (i, n) {
                        $(this).css({"display": "none"});
                    });
                    $.ajax({
                        type: "get",
                        async: true,
                        url: "AllMonit.action?monitID=" + ID,
                        success: function (result) {
                            if (result == "00") {
                                alert("发生错误，请稍后再试！")
                                return;
                            } else if (result.indexOf("FSE") < 0) {
                                alert("没有数据");
                            } else {
                                MonitArr = result.split(',');
                                $("#FishEggsDiv").css({"display": "block"});
                                $("#FishEggs  button").each(function (i, n) {
                                    $(this).css({"display": "none"});
                                });
                                var j = 0;
                                for (var i = 0; i < MonitArr.length; i++) {
                                    var select = trArray[j];
                                    if (MonitArr[i].substring(0, 3) == "FSE"){
                                        j++;
                                        $.ajax({
                                            type: "get",
                                            url: "ShowMessage.action?monitID=" + MonitArr[i],
                                            async: false,
                                            success: function (result) {
                                                var Mon = result.split(",");
                                                $("#FishEggsDiv #" + select).show();
                                                console.log("aaaaaaaaaaaaaaa  " + Mon);
                                                $("#FishEggsDiv #" + select + " td").each(function (i, n) {
                                                    if (i > 5) return;
                                                    if (i == 0) {
                                                        $(this).html(Mon[i]);
                                                        return;
                                                    }
                                                    else $(this).html(Mon[i + 1]);
                                                });
                                                $("#FishEggsDiv #" + select + " button").each(function (i, n) {
                                                    $(this).css({"display": "inline-block"});
                                                });
                                            }
                                        });
                                    }
                                }
                            }
                        }
                    });
                });
                    /*查询分子样本基础信息*/
                $(document).on("click", "#seeMolecule,#seeMolecule1,#seeMolecule2,#seeMolecule3,#seeMolecule4,#seeMolecule5,#seeMolecule6,#seeMolecule7,#seeMolecule8,#seeMolecule9", function () {
                    var substring = $(this).attr("ID").substring(11, 12);
                    var index = 0;
                    if (substring != null) index = Number(substring);
                    var selectTr;
                    var ID;
                    if (index < 5) {
                        selectTr = trArray[index];
                        ID = $("#fishesDiv #" + selectTr + " td:first-child").html();
                    } else {
                        selectTr = trArray[index - 5];
                        ID = $("#FishEggsDiv #" + selectTr + " td:first-child").html();
                    }
                    if (ID.length == 0) return;
                    selectCTHID = ID;
                    for (var j = 0; j < 5; j++) {
                        $("#Molecule #" + trArray[j] + " td").each(function (i, n) {
                            if (i > 3) return;
                            $(this).html("");
                        });
                        $("#Molecule #" + trArray[j]).hide();
                    }
                    $("#Molecule button").each(function (i, n) {
                        $(this).css({"display": "none"});
                    });
                    $.ajax({
                        type: "get",
                        async: true,
                        url: "AllMonit.action?monitID=" + ID,
                        success: function (result) {
                            if (result == "00") {
                                alert("发生错误，请稍后再试！")
                                return;
                            } else if (result.indexOf("MMR") < 0) {
                                alert("没有数据");
                            } else {
                                MonitArr = result.split(',');
                                var flag = false;
                                var j = 0;

                                $("#moleculeDiv").css({"display": "block"});
                                for (var i = 0; i < MonitArr.length; i++) {
                                    var select = trArray[j];
                                    if (MonitArr[i].substring(0, 3) == "MMR") {
                                        j++;
                                        flag = true;
                                        $.ajax({
                                            type: "get",
                                            url: "ShowMessage.action?monitID=" + MonitArr[i],
                                            async: false,
                                            success: function (result) {
                                                var Mon = result.split(",");
                                                $("#moleculeDiv #" + select).show();
                                                $("#moleculeDiv #" + select + " td").each(function (i, n) {
                                                    if (i > 3) return;
                                                    else $(this).html(Mon[i]);
                                                });

                                                $("#moleculeDiv #" + select + " button").each(function (i, n) {
                                                    $(this).css({"display": "inline-block"});
                                                });
                                            }
                                        });
                                    }
                                }
                                if (!flag) {
                                    alert("没有数据");
                                }
                            }
                        }
                    });
                });
                    /*查询引物*/
                $(document).on("click", "#seePrim,#seePrim1,#seePrim2,#seePrim3,#seePrim4", function () {
                    var substring = $(this).attr("ID").substring(7, 8);
                    var index = 0;
                    if (substring != null) index = Number(substring);
                    var selectTr = trArray[index];
                    var ID = $("#moleculeDiv #" + selectTr + " td:first-child").html();
                    if (ID.length == 0) return;
                    selectCTHID = ID;
                    for (var j = 0; j < 5; j++) {
                        $("#Prim #" + trArray[j] + " td").each(function (i, n) {
                            if (i > 3) return;
                            $(this).html("");
                        });
                        $("#Prim #" + trArray[j]).hide();
                    }
                    $("#Prim button").each(function (i, n) {
                        $(this).css({"display": "none"});
                    });
                    $.ajax({
                        type: "get",
                        async: true,
                        url: "AllMonit.action?monitID=" + "MMR" + ID,
                        success: function (result) {
                            alert(result + " " + selectTr);
                            if (result == "00") {
                                alert("发生错误，请稍后再试！")
                                return;
                            } else if (result.indexOf("PRI") < 0) {
                                alert("没有数据");
                            } else {
                                MonitArr = result.split(',');

                                $("#primDiv").css({"display": "block"});
                                for (var i = 0; i < MonitArr.length; i++) {
                                    var select = trArray[i];
                                    if(MonitArr[i].substring(0, 3) == "PRI"){
                                        $.ajax({
                                            type: "get",
                                            url: "ShowMessage.action?monitID=" + MonitArr[i],
                                            async: false,
                                            success: function (result) {
                                                var Mon = result.split(",");
                                                $("#primDiv #" + select).show();
                                                $("#primDiv #" + select + " td").each(function (i, n) {
                                                    if (i > 3) return;
                                                    $(this).html(Mon[i]);
                                                });

                                                $("#primDiv #" + select + " button").each(function (i, n) {
                                                    $(this).css({"display": "inline-block"});
                                                });

                                            }
                                        });
                                    }
                                }
                            }
                        }
                    });
                });
                    /*查询单样本信息*/
                $(document).on("click", "#seeSample,#seeSample1,#seeSample2,#seeSample3,#seeSample4", function () {
                    var substring = $(this).attr("ID").substring(9, 10);
                    var index = 0;
                    if (substring != null) index = Number(substring);
                    var selectTr = trArray[index];
                    var ID = $("#moleculeDiv #" + selectTr + " td:first-child").html();
                    if (ID.length == 0) return;
                    selectCTHID = ID;
                    for (var j = 0; j < 5; j++) {
                        $("#Sample #" + trArray[j] + " td").each(function (i, n) {
                            if (i > 2) return;
                            $(this).html("");
                        });
                        $("#Sample #" + trArray[j]).hide();
                    }
                    $("#Sample button").each(function (i, n) {
                        $(this).css({"display": "none"});
                    });
                    $.ajax({
                        type: "get",
                        async: true,
                        url: "AllMonit.action?monitID=" + "MMR" + ID,
                        success: function (result) {
                            if (result == "00") {
                                alert("发生错误，请稍后再试！")
                                return;
                            } else if (result.indexOf("SIF") < 0) {
                                alert("没有数据");
                            } else {
                                MonitArr = result.split(',');
                                var j = 0;

                                $("#sampleDiv").css({"display": "block"});
                                for (var i = 0; i < MonitArr.length; i++) {
                                    var select = trArray[j];
                                    if (MonitArr[i].substring(0, 3) == "SIF") {
                                        j++;
                                        $.ajax({
                                            type: "get",
                                            url: "ShowMessage.action?monitID=" + MonitArr[i],
                                            async: false,
                                            success: function (result) {
                                                var Mon = result.split(",");
                                                $("#sampleDiv #" + select).show();
                                                $("#sampleDiv #" + select + " td").each(function (i, n) {
                                                    if (i > 2) return;
                                                    $(this).html(Mon[i]);
                                                });

                                                $("#sampleDiv #" + select + " button").each(function (i, n) {
                                                    $(this).css({"display": "inline-block"});
                                                });

                                            }
                                        });
                                    }
                                }
                            }
                        }
                    });
                });
                    /*查询单群体计算数据*/
                $(document).on("click", "#seeColony,#seeColony1,#seeColony2,#seeColony3,#seeColony4", function () {
                    var substring = $(this).attr("ID").substring(9, 10);
                    var index = 0;
                    if (substring != null) index = Number(substring);
                    var selectTr = trArray[index];
                    alert(selectTr);
                    var ID = $("#" + selectTr + " td:first-child").html();
                    if (ID.length == 0) return;
                    selectCTHID = ID;
                    for (var j = 0; j < 5; j++) {
                        $("#Colony #" + trArray[j] + " td").each(function (i, n) {
                            if (i > 10) return;
                            $(this).html("");
                        });
                        $("#Colony #" + trArray[j]).hide();
                    }
                    $("#Colony button").each(function (i, n) {
                        $(this).css({"display": "none"});
                    });
                    $.ajax({
                        type: "get",
                        async: true,
                        url: "AllMonit.action?monitID=" + ID,
                        success: function (result) {
                            if (result == "00") {
                                alert("发生错误，请稍后再试！")
                                return;
                            } else if (result.indexOf("CRD") < 0) {
                                alert("没有数据");
                            } else {
                                MonitArr = result.split(',');
                                var j = 0;

                                $("#colonyDiv").css({"display": "block"});
                                for (var i = 0; i < MonitArr.length; i++) {
                                    var select = trArray[j];
                                    if (MonitArr[i].substring(0, 3) == "CRD") {
                                        j++;
                                        $.ajax({
                                            type: "get",
                                            url: "ShowMessage.action?monitID=" + MonitArr[i],
                                            async: false,
                                            success: function (result) {
                                                var Mon = result.split(",");
                                                $("#colonyDiv #" + select).show();
                                                $("#colonyDiv #" + select + " td").each(function (i, n) {
                                                    if (i > 10) return;
                                                    $(this).html(Mon[i]);
                                                });

                                                $("#colonyDiv #" + select + " button").each(function (i, n) {
                                                    $(this).css({"display": "inline-block"});
                                                });

                                            }
                                        });
                                    }
                                }
                            }
                        }
                    });
                });
                    /*添加鱼样本*/
                var fatherFishId;
                $(document).on("click", "#addFishes,#addFishes1,#addFishes2,#addFishes3,#addFishes4", function () {
                    $(".title").text("添加鱼样本");
                    var substring = $(this).attr("ID").substring(9, 10);
                    var index;
                    index = Number(substring);
                    var selectTr = trArray[index];
                    var ID = $("#" + selectTr + " td:first-child").html();
                    if (ID.length == 0) return;
                    fatherFishId = ID;
                    $("#showFish").css({"display": "block"});
                    $("#showFish input").each(function (i, n) {
                        $(this).val("");
                    });
                    $("#sumbitFishes").text("确认提交");

                });
                    /*添加鱼体环境污染物*/
                var fatherFishEPId;
                $(document).on("click", "#addFishEP,#addFishEP1,#addFishEP2,#addFishEP3,#addFishEP4", function () {
                    $(".title").text("添加鱼体环境污染物");
                    var substring = $(this).attr("ID").substring(9, 10);
                    var index = 0;
                    if (substring != null) index = Number(substring);
                    var selectTr = trArray[index];
                    var ID = $("#fishesDiv #" + selectTr + " td:first-child").html();
                    if (ID.length == 0) return;
                    fatherFishEPId = ID;
                    alert(fatherFishEPId + " " + ID);
                    $("#showFishEP").css({"display": "block"});
                    $("#showFishEP input").each(function (i, n) {
                        $(this).val("");
                    });
                    $("#submitFishEP").text("确认提交");

                });
                    /*添加卵样本*/
                var fatherFishId1;
                $(document).on("click", "#addFishEgg0,#addFishEgg1,#addFishEgg2,#addFishEgg3,#addFishEgg4", function () {
                    $(".title").text("添加卵样本");
                    var substring = $(this).attr("ID").substring(10, 11);
                    var index;
                    index = Number(substring);
                    var selectTr = trArray[index];
                    var ID = $("#" + selectTr + " td:first-child").html();
                    if (ID.length == 0) return;
                    fatherFishId1 = ID;
                    $("#showFishEggs").css({"display": "block"});
                    $("#showFishEggs input").each(function (i, n) {
                        $(this).val("");
                    });
                    $("#sumbitFishEggs").text("确认提交");
                });
                    /*添加分子样本基础信息*/
                var fatherFishId3;
                $(document).on("click", "#addMolecule,#addMolecule1,#addMolecule2,#addMolecule3,#addMolecule4,#addMolecule5,#addMolecule6,#addMolecule7,#addMolecule8,#addMolecule9", function () {
                    $(".title").text("添加分子样本基础信息");
                    var substring = $(this).attr("ID").substring(11, 12);
                    var index = 0;
                    var selectTr;
                    var ID;
                    if (substring != null) index = Number(substring);
                    if (index < 5) {
                        selectTr = trArray[index];
                        ID = $("#fishesDiv #" + selectTr + " td:first-child").html();
                    } else {
                        selectTr = trArray[index - 5];
                        ID = $("#FishEggsDiv #" + selectTr + " td:first-child").html();
                    }
                    if (ID.length == 0) return;
                    fatherFishId3 = ID;
                    $("#showMolecule").css({"display": "block"});
                    $("#showMolecule input").each(function (i, n) {
                        $(this).val("");
                    });
                    $("#submitMolecule").text("确认提交");
                });
                    /*添加引物*/
                var fatherFishId4 = 0;
                $(document).on("click", "#addPrim,#addPrim1,#addPrim2,#addPrim3,#addPrim4", function () {
                    $(".title").text("添加分子样本基础信息");
                    var substring = $(this).attr("ID").substring(7, 8);
                    var index = 0;
                    if (substring != null) index = Number(substring);
                    var selectTr = trArray[index];
                    var ID = $("#moleculeDiv #" + selectTr + " td:first-child").html();
                    if (ID.length == 0) return;
                    fatherFishId4 = ID;
                    $("#showPrim").css({"display": "block"});
                    $("#showPrim input").each(function (i, n) {
                        $(this).val("");
                    });
                    $("#submitPrim").text("确认提交");
                });
                    /*添加单样本信息*/
                var fatherFishId5 = 0;
                $(document).on("click", "#addSample,#addSample1,#addSample2,#addSample3,#addSample4", function () {
                    $(".title").text("添加单样本信息");
                    var substring = $(this).attr("ID").substring(9, 10);
                    var index = 0;
                    if (substring != null) index = Number(substring);
                    var selectTr = trArray[index];
                    var ID = $("#moleculeDiv #" + selectTr + " td:first-child").html();
                    if (ID.length == 0) return;
                    fatherFishId5 = ID;
                    $("#showSample").css({"display": "block"});
                    $("#showSample input").each(function (i, n) {
                        $(this).val("");
                    });
                    $("#submitSample").text("确认提交");
                });
                    /*添加单群体计算数据*/
                var fatherFishId2;
                $(document).on("click", "#addColony,#addColony1,#addColony2,#addColony3,#addColony4", function () {
                    $(".title").text("添加鱼体环境污染物");
                    var substring = $(this).attr("ID").substring(9, 10);
                    var index = 0;
                    if (substring != null) index = Number(substring);
                    var selectTr = trArray[index];
                    var ID = $("#" + selectTr + " td:first-child").html();
                    if (ID.length == 0) return;
                    fatherFishId2 = ID;
                    $("#showColony").css({"display": "block"});
                    $("#showColony input").each(function (i, n) {
                        $(this).val("");
                    });
                    $("#colonySubmit").text("确认提交");

                });
                    /*更改鱼样本*/
                $(document).on("click", "#updateFish0,#updateFish1,#updateFish2,#updateFish3,#updateFish4", function () {
                    $(".title").text("修改鱼样本信息");
                    var substring = $(this).attr("ID").substring(10, 11);
                    var index;
                    index = Number(substring);
                    var selectTr = trArray[index];
                    trID = selectTr;
                    if ($("#fishesDiv #" + selectTr + " td:first-child").html().length == 0) return;
                    $("#sumbitFishes").text("确认修改");
                    $("#showFish").css({"display": "block"});
                    var Mon = [];
                    $("#fishesDiv #" + selectTr + " td").each(function (i, n) {
                        if (i > 4) return;
                        Mon[i] = $(this).html();
                    });
                    getID = Mon[0];
                    $("#showFish input").each(function (i, n) {
                        if (i > 4) return;
                        $(this).val(Mon[i + 1]);
                    });
                });
                    /*更改鱼体环境污染物*/
                $(document).on("click", "#updateFishEP,#updateFishEP1,#updateFishEP2,#updateFishEP3,#updateFishEP4", function () {
                    $(".title").text("修改鱼体环境污染物");
                    var substring = $(this).attr("ID").substring(12, 13);
                    var index = 0;
                    if (substring != null) index = Number(substring);
                    alert("the index is" + index);
                    var selectTr = trArray[index];
                    trID = selectTr;
                    if ($("#fishEPDiv #" + selectTr + " td:first-child").html().length == 0) return;
                    $("#submitFishEP").text("确认修改");
                    $("#showFishEP").css({"display": "block"});
                    var Mon = [];
                    $("#fishEPDiv #" + selectTr + " td").each(function (i, n) {
                        if (i > 4) return;
                        Mon[i] = $(this).html();
                    });
                    getID = Mon[0];
                    $("#showFishEP input").each(function (i, n) {
                        if (i > 4) return;
                        $(this).val(Mon[i + 1]);
                    });
                });
                    /*更改卵样本*/
                $(document).on("click", "#updateFishEggs0,#updateFishEggs1,#updateFishEggs2,#updateFishEggs3,#updateFish4Eggs", function () {
                    $(".title").text("修改卵样本信息");
                    var substring = $(this).attr("ID").substring(14, 15);
                    var index;
                    index = Number(substring);
                    var selectTr = trArray[index];
                    trID = selectTr;
                    if ($("#FishEggsDiv #" + selectTr + " td:first-child").html().length == 0) return;
                    $("#sumbitFishEggs").text("确认修改");
                    $("#showFishEggs").css({"display": "block"});
                    var Mon = [];
                    $("#FishEggsDiv #" + selectTr + " td").each(function (i, n) {
                        if (i > 5) return;
                        Mon[i] = $(this).html();
                    });
                    getID = Mon[0];
                    $("#showFishEggs input").each(function (i, n) {
                        if (i > 9) return;
                        $(this).val(Mon[i + 1]);
                    });
                });
                    /*更改分子样本基础信息*/
                $(document).on("click", "#updateMolecule,#updateMolecule1,#updateMolecule2,#updateMolecule3,#updateMolecule4", function () {
                    $(".title").text("修改分子样本基础信息");
                    var substring = $(this).attr("ID").substring(14, 15);
                    var index = 0;
                    if (substring != null) index = Number(substring);
                    var selectTr = trArray[index];
                    trID = selectTr;
                    if ($("#moleculeDiv #" + selectTr + " td:first-child").html().length == 0) return;
                    $("#submitMolecule").text("确认修改");
                    $("#showMolecule").css({"display": "block"});
                    var Mon = [];
                    $("#moleculeDiv #" + selectTr + " td").each(function (i, n) {
                        if (i > 3) return;
                        Mon[i] = $(this).html();
                    });
                    getID = Mon[0];
                    $("#showMolecule input").each(function (i, n) {
                        if (i > 2) return;
                        $(this).val(Mon[i + 1]);
                    });
                });
                    /*更改引物*/
                $(document).on("click", "#updatePrim,#updatePrim1,#updatePrim2,#updatePrim3,#updatePrim4", function () {
                    $(".title").text("修改引物信息");
                    var substring = $(this).attr("ID").substring(10, 11);
                    var index = 0;
                    if (substring != null) index = Number(substring);
                    var selectTr = trArray[index];
                    trID = selectTr;
                    if ($("#primDiv #" + selectTr + " td:first-child").html().length == 0) return;
                    $("#submitPrim").text("确认修改");
                    $("#showPrim").css({"display": "block"});
                    var Mon = [];
                    $("#primDiv #" + selectTr + " td").each(function (i, n) {
                        if (i > 3) return;
                        Mon[i] = $(this).html();
                    });
                    getID = Mon[0];
                    $("#showPrim input").each(function (i, n) {
                        if (i > 2) return;
                        $(this).val(Mon[i + 1]);
                    });
                });
                /*更改单样本信息*/
                $(document).on("click", "#updateSample,#updateSample1,#updateSample2,#updateSample3,#updateSample4", function () {
                    $(".title").text("修改单样本信息");
                    var substring = $(this).attr("ID").substring(12, 13);
                    var index = 0;
                    if (substring != null) index = Number(substring);
                    var selectTr = trArray[index];
                    trID = selectTr;
                    if ($("#sampleDiv #" + selectTr + " td:first-child").html().length == 0) return;
                    $("#submitSample").text("确认修改");
                    $("#showSample").css({"display": "block"});
                    var Mon = [];
                    $("#sampleDiv #" + selectTr + " td").each(function (i, n) {
                        if (i > 2) return;
                        Mon[i] = $(this).html();
                    });
                    getID = Mon[0];
                    $("#showSample input").each(function (i, n) {
                        if (i > 1) return;
                        $(this).val(Mon[i + 1]);
                    });
                });
                    /*更改单群体计算数据*/
                $(document).on("click", "#updateColony,#updateColony1,#updateColony2,#updateColony3,#updateColony4", function () {
                    $(".title").text("修改鱼样本信息");
                    var substring = $(this).attr("ID").substring(12, 13);
                    var index = 0;
                    if (substring != null) index = Number(substring);
                    var selectTr = trArray[index];
                    trID = selectTr;
                    if ($("#colonyDiv #" + selectTr + " td:first-child").html().length == 0) return;
                    $("#colonySubmit").text("确认修改");
                    $("#showColony").css({"display": "block"});
                    var Mon = [];
                    $("#colonyDiv #" + selectTr + " td").each(function (i, n) {
                        if (i > 11) return;
                        Mon[i] = $(this).html();
                    });
                    getID = Mon[0];
                    $("#showColony input").each(function (i, n) {
                        if (i > 9) return;
                        $(this).val(Mon[i + 1]);
                    });
                });
                    /*删除鱼样本*/
                $(document).on("click", "#fishDelete0,#fishDelete1,#fishDelete2,#fishDelete3,#fishDelete4", function () {
                    var substring = $(this).attr("ID").substring(10, 11);
                    var index;
                    var par = {};
                    index = Number(substring);
                    var selectTr = trArray[index];
                    var ID = $("#fishesDiv #" + selectTr + " td:first-child").html();
                    if (ID.length == 0) return;
                    par["monitID"] = ID;
                    if (confirm("您确定删除该条数据吗？")) {
                        $.ajax({
                            type: "post",
                            async: true,
                            url: "DeleteMonit.action",
                            data: par,
                            success: function (result) {
                                if (result == "error") {
                                    alert("删除失败！");
                                } else {
                                    alert("删除成功！");
                                    var data = [];
                                    var target = "";
                                    $("#primDiv").css({"display": "none"});
                                    $("#moleculeDiv").css({"display": "none"});
                                    $("#fishEPDiv").css({"display": "none"});
                                    $("#sampleDiv").css({"display": "none"});
                                    for (var i = 0; i < trArray.length; i++) {
                                        if ($("#fishesDiv #" + trArray[i] + " td:first-child").html().length == 0) {
                                            target = trArray[i - 1];
                                            if (target == selectTr) {
                                                $("#fishesDiv #" + target + " td").each(function (i, n) {
                                                    if (i > 4) return;
                                                    $(this).html("");
                                                });
                                                $("#fishesDiv #" + target + " button").each(function (i, n) {
                                                    $(this).css({"display": "none"});
                                                });
                                                $("#fishesDiv #" + target).hide();
                                                return;
                                            }
                                            break;
                                        }
                                    }
                                    if (target.length == 0) target = "e";
                                    $("#fishesDiv #" + target + " td").each(function (i, n) {
                                        if (i > 4) return;
                                        data[i] = $(this).html();
                                        $(this).html("");
                                    });
                                    $("#fishesDiv #" + target + " button").each(function (i, n) {
                                        $(this).css({"display": "none"});
                                    });
                                    $("#fishesDiv #" + target).hide();
                                    updateFish(data, selectTr);
                                }
                            }
                        });
                    }
                });
                /*删除鱼体环境污染物*/
                $(document).on("click", "#fishEPDelete,#fishEPDelete1,#fishEPDelete2,#fishEPDelete3,#fishEPDelete4", function () {
                    var substring = $(this).attr("ID").substring(12, 13);
                    var index = 0;
                    var par = {};
                    if(substring != null) index = Number(substring);
                    var selectTr = trArray[index];
                    var ID = $("#fishEPDiv #" + selectTr + " td:first-child").html();
                    if (ID.length == 0) return;
                    par["monitID"] = "FEP" + ID;
                    if (confirm("您确定删除该条数据吗？")) {
                        $.ajax({
                            type: "post",
                            async: true,
                            url: "DeleteMonit.action",
                            data: par,
                            success: function (result) {
                                if (result == "error") {
                                    alert("删除失败！");
                                } else {
                                    alert("删除成功！");
                                    var data = [];
                                    var target = "";
                                    for (var i = 0; i < trArray.length; i++) {
                                        if ($("#fishEPDiv #" + trArray[i] + " td:first-child").html().length == 0) {
                                            target = trArray[i - 1];
                                            if (target == selectTr) {
                                                $("#fishEPDiv #" + target + " td").each(function (i, n) {
                                                    if (i > 4) return;
                                                    $(this).html("");
                                                });
                                                $("#fishEPDiv #" + target + " button").each(function (i, n) {
                                                    $(this).css({"display": "none"});
                                                });
                                                $("#fishEPDiv #" + target).hide();
                                                return;
                                            }
                                            break;
                                        }
                                    }
                                    if (target.length == 0) target = "e";
                                    $("#fishEPDiv #" + target + " td").each(function (i, n) {
                                        if (i > 4) return;
                                        data[i] = $(this).html();
                                        $(this).html("");
                                    });
                                    $("#fishEPDiv #" + target + " button").each(function (i, n) {
                                        $(this).css({"display": "none"});
                                    });
                                    $("#fishEPDiv #" + target).hide();
                                    updateFishEP(data, selectTr);
                                }
                            }
                        });
                    }
                });
                /*删除分子样本基础信息*/
                $(document).on("click", "#moleculeDelete,#moleculeDelete1,#moleculeDelete2,#moleculeDelete3,#moleculeDelete4", function () {
                    var substring = $(this).attr("ID").substring(14, 15);
                    var index = 0;
                    var par = {};
                    if(substring != null) index = Number(substring);
                    var selectTr = trArray[index];
                    var ID = $("#moleculeDiv #" + selectTr + " td:first-child").html();
                    if (ID.length == 0) return;
                    par["monitID"] = "MMR" + ID;
                    if (confirm("您确定删除该条数据吗？")) {
                        $.ajax({
                            type: "post",
                            async: true,
                            url: "DeleteMonit.action",
                            data: par,
                            success: function (result) {
                                if (result == "error") {
                                    alert("删除失败！");
                                } else {
                                    alert("删除成功！");
                                    var data = [];
                                    var target = "";
                                    for (var i = 0; i < trArray.length; i++) {
                                        if ($("#moleculeDiv #" + trArray[i] + " td:first-child").html().length == 0) {
                                            target = trArray[i - 1];
                                            if (target == selectTr) {
                                                $("#moleculeDiv #" + target + " td").each(function (i, n) {
                                                    if (i > 3) return;
                                                    $(this).html("");
                                                });
                                                $("#moleculeDiv #" + target + " button").each(function (i, n) {
                                                    $(this).css({"display": "none"});
                                                });
                                                $("#moleculeDiv #" + target).hide();
                                                return;
                                            }
                                            break;
                                        }
                                    }
                                    if (target.length == 0) target = "e";
                                    $("#moleculeDiv #" + target + " td").each(function (i, n) {
                                        if (i > 3) return;
                                        data[i] = $(this).html();
                                        $(this).html("");
                                    });
                                    $("#moleculeDiv #" + target + " button").each(function (i, n) {
                                        $(this).css({"display": "none"});
                                    });
                                    $("#moleculeDiv #" + target).hide();
                                        updateMolecule(data, selectTr);
                                }
                            }
                        });
                    }
                });
                /*删除引物*/
                $(document).on("click", "#primDelete,#primDelete1,#primDelete2,#primDelete3,#primDelete4", function () {
                    var substring = $(this).attr("ID").substring(10, 11);
                    var index = 0;
                    var par = {};
                    if(substring != null) index = Number(substring);
                    var selectTr = trArray[index];
                    var ID = $("#primDiv #" + selectTr + " td:first-child").html();
                    if (ID.length == 0) return;
                    par["monitID"] = "PRI" + ID;
                    if (confirm("您确定删除该条数据吗？")) {
                        $.ajax({
                            type: "post",
                            async: true,
                            url: "DeleteMonit.action",
                            data: par,
                            success: function (result) {
                                if (result == "error") {
                                    alert("删除失败！");
                                } else {
                                    alert("删除成功！");
                                    var data = [];
                                    var target = "";
                                    for (var i = 0; i < trArray.length; i++) {
                                        if ($("#primDiv #" + trArray[i] + " td:first-child").html().length == 0) {
                                            target = trArray[i - 1];
                                            if (target == selectTr) {
                                                $("#primDiv #" + target + " td").each(function (i, n) {
                                                    if (i > 3) return;
                                                    $(this).html("");
                                                });
                                                $("#primDiv #" + target + " button").each(function (i, n) {
                                                    $(this).css({"display": "none"});
                                                });
                                                $("#primDiv #" + target).hide();
                                                return;
                                            }
                                            break;
                                        }
                                    }
                                    if (target.length == 0) target = "e";
                                    $("#primDiv #" + target + " td").each(function (i, n) {
                                        if (i > 3) return;
                                        data[i] = $(this).html();
                                        $(this).html("");
                                    });
                                    $("#primDiv #" + target + " button").each(function (i, n) {
                                        $(this).css({"display": "none"});
                                    });
                                    $("#primDiv #" + target).hide();
                                    updatePrim(data, selectTr);
                                }
                            }
                        });
                    }
                });
                    /*删除单样本信息*/
                $(document).on("click", "#sampleDelete,#sampleDelete1,#sampleDelete2,#sampleDelete3,#sampleDelete4", function () {
                    var substring = $(this).attr("ID").substring(12, 13);
                    var index = 0;
                    var par = {};
                    if(substring != null) index = Number(substring);
                    var selectTr = trArray[index];
                    var ID = $("#sampleDiv #" + selectTr + " td:first-child").html();
                    if (ID.length == 0) return;
                    par["monitID"] = "SIF" + ID;
                    if (confirm("您确定删除该条数据吗？")) {
                        $.ajax({
                            type: "post",
                            async: true,
                            url: "DeleteMonit.action",
                            data: par,
                            success: function (result) {
                                if (result == "error") {
                                    alert("删除失败！");
                                } else {
                                    alert("删除成功！");
                                    var data = [];
                                    var target = "";
                                    for (var i = 0; i < trArray.length; i++) {
                                        if ($("#sampleDiv #" + trArray[i] + " td:first-child").html().length == 0) {
                                            target = trArray[i - 1];
                                            if (target == selectTr) {
                                                $("#sampleDiv #" + target + " td").each(function (i, n) {
                                                    if (i > 2) return;
                                                    $(this).html("");
                                                });
                                                $("#sampleDiv #" + target + " button").each(function (i, n) {
                                                    $(this).css({"display": "none"});
                                                });
                                                $("#sampleDiv #" + target).hide();
                                                return;
                                            }
                                            break;
                                        }
                                    }
                                    if (target.length == 0) target = "e";
                                    $("#sampleDiv #" + target + " td").each(function (i, n) {
                                        if (i > 2) return;
                                        data[i] = $(this).html();
                                        $(this).html("");
                                    });
                                    $("#sampleDiv #" + target + " button").each(function (i, n) {
                                        $(this).css({"display": "none"});
                                    });
                                    $("#sampleDiv #" + target).hide();
                                    updateSample(data, selectTr);
                                }
                            }
                        });
                    }
                });
                    /*删除卵样本*/
                $(document).on("click", "#fishEggsDelete0,#fishEggsDelete1,#fishEggsDelete2,#fishEggsDelete3,#fishEggsDelete4", function () {
                    var substring = $(this).attr("ID").substring(14, 15);
                    var index;
                    var par = {};
                    index = Number(substring);
                    var selectTr = trArray[index];
                    var ID = $("#FishEggsDiv #" + selectTr + " td:first-child").html();
                    if (ID.length == 0) return;
                    par["monitID"] = ID;
                    if (confirm("您确定删除该条数据吗？")) {
                        $.ajax({
                            type: "post",
                            async: true,
                            url: "DeleteMonit.action",
                            data: par,
                            success: function (result) {
                                if (result == "error") {
                                    alert("删除失败！");
                                } else {
                                    alert("删除成功！");
                                    var data = [];
                                    var target = "";
                                    $("#primDiv").css({"display": "none"});
                                    $("#moleculeDiv").css({"display": "none"});
                                    $("#sampleDiv").css({"display": "none"});
                                    for (var i = 0; i < trArray.length; i++) {
                                        if ($("#FishEggsDiv #" + trArray[i] + " td:first-child").html().length == 0) {
                                            target = trArray[i - 1];
                                            if (target == selectTr) {
                                                $("#FishEggsDiv #" + target + " td").each(function (i, n) {
                                                    if (i > 5) return;
                                                    $(this).html("");
                                                    return;
                                                });
                                                $("#FishEggsDiv #" + target).hide();
                                                hideButton("FishEggsDiv", target);
                                            }
                                            break;
                                        }
                                    }
                                    if (target.length == 0) target = "e";
                                    $("#FishEggsDiv #" + target).hide();
                                    $("#FishEggsDiv #" + target + " td").each(function (i, n) {
                                        if (i > 5) return;
                                        data[i] = $(this).html();
                                        $(this).html("");
                                    });
                                    hideButton("FishEggsDiv", target);
                                    updateFish(data, selectTr);
                                }
                            }
                        });
                    }
                });
                /*删除单群体计算*/
                $(document).on("click", "#colonyDelete,#colonyDelete1,#colonyDelete2,#colonyDelete3,#colonyDelete4", function () {
                    var substring = $(this).attr("ID").substring(12, 13);
                    var index;
                    var par = {};
                    if(substring != null) index = Number(substring);
                    var selectTr = trArray[index];
                    var ID = $("#colonyDiv #" + selectTr + " td:first-child").html();
                    if (ID.length == 0) return;
                    par["monitID"] = "CRD" + ID;
                    if (confirm("您确定删除该条数据吗？")) {
                        $.ajax({
                            type: "post",
                            async: true,
                            url: "DeleteMonit.action",
                            data: par,
                            success: function (result) {
                                if (result == "error") {
                                    alert("删除失败！");
                                } else {
                                    alert("删除成功！");
                                    var data = [];
                                    var target = "";
                                    for (var i = 0; i < trArray.length; i++) {
                                        if ($("#colonyDiv #" + trArray[i] + " td:first-child").html().length == 0) {
                                            target = trArray[i - 1];
                                            if (target == selectTr) {
                                                $("#colonyDiv #" + target + " td").each(function (i, n) {
                                                    if (i > 10) return;
                                                    $(this).html("");
                                                });
                                                $("#colonyDiv #" + target + " button").each(function (i, n) {
                                                    $(this).css({"display": "none"});
                                                });
                                                $("#colonyDiv #" + target).hide();
                                                return;
                                            }
                                            break;
                                        }
                                    }
                                    if (target.length == 0) target = "e";
                                    $("#colonyDiv #" + target + " td").each(function (i, n) {
                                        if (i > 10) return;
                                        data[i] = $(this).html();
                                        $(this).html("");
                                    });
                                    $("#colonyDiv #" + target + " button").each(function (i, n) {
                                        $(this).css({"display": "none"});
                                    });
                                    $("#colonyDiv #" + target).hide();
                                    updateColony(data, selectTr);
                                }
                            }
                        });
                    }
                });
                    /*提交水质监测数据*/
                $("#detectionSubmit").click(function () {

                    var data = [];
                    var sub = "";
                    var url = "op_detection.action";
                    var formData = new FormData($("#testDetection")[0]);
                    formData.append("ID_WaterLayer", fatherID);
                    if ($(this).text() == "确认提交") {
                        sub = "添加";
                        formData.append("flag", "insert");
                    } else {
                        sub = "修改";
                        formData.append("flag", "update");
                        formData.append("detectionID", detectionID);
                    }
                    $.ajax({
                        url: url,
                        type: 'POST',
                        data: formData,
                        async: true,
                        cache: false,
                        contentType: false,
                        processData: false,
                        success: function (result) {
                            if (result == "error") {
                                alert(sub + "失败！");
                            } else if (result == "null") {
                                alert("请填写必填项！");
                            } else {
                                alert(sub + "成功！");
                                $("#showDetection").css({"display": "none"});
                                data[0] = detectionID;
                                $("#showDetection input").each(function (i, n) {
                                    if (i == 3) return;
                                    data[i + 1] = $(this).val();
                                });
                                if (sub == "添加") {
                                    data[0] = result;
                                    insertDetection(data);
                                    return;
                                }
                                updateDetection(data, trID);
                            }
                        }
                    });
                });
                    /*提交渔获物*/
                $("#getSumbit").click(function () {

                    var data = [];
                    var sub = "";
                    var url = "op_catch.action";
                    var formData = new FormData($("#testGet")[0]);
                    if ($("#PhotoGet").val().length > 100 || $("#PhotoGet").val().length <= 0) formData.append("isNull", "");
                    else formData.append("isNull", "有");
                    if ($(this).text() == "确认提交") {
                        sub = "添加";
                        formData.append("flag", "insert");
                        formData.append("ID_WaterLayer", fatherID);
                    } else {
                        sub = "修改";
                        formData.append("flag", "update");
                        formData.append("SampleID", getID);
                    }

                    $.ajax({
                        url: url,
                        type: 'POST',
                        data: formData,
                        async: true,
                        cache: false,
                        contentType: false,
                        processData: false,
                        success: function (result) {
                            if (result == "error") {
                                alert(sub + "失败！");
                            } else if (result == "null") {
                                alert("请填写必填项！");
                            } else {
                                alert(sub + "成功！");
                                $("#showGet").css({"display": "none"});
                                var array = result.split(",");
                                data[0] = getID;
                                $("#showGet input").each(function (i, n) {
                                    if (i == 4) {
                                        return;
                                    }
                                    data[i + 1] = $(this).val();
                                });
                                if (sub == "添加") {
                                    data[0] = array[0];
                                    insertCatche(data);
                                    return;
                                }
                                updateGet(data, trID);
                                toolImages = result.split("|");
                            }
                        }
                    });

                });
                    /*提交鱼样本*/
                $("#sumbitFishes").click(function () {
                    var data = [];
                    var sub = "";
                    var url = "op_fish.action";
                    var formData = new FormData($("#testFishes")[0]);
                    var sub;
                    if ($("#PhotoFish").val().length > 100 || $("#PhotoFish").val().length <= 0) formData.append("isNull", "");
                    else formData.append("isNull", "有");
                    if ($(this).text() == "确认提交") {
                        formData.append("flag", "insert");
                        sub = "添加";
                        formData.append("ID_Catches", fatherFishId);
                    } else {
                        sub = "修改";
                        formData.append("flag", "update");
                        formData.append("SampleID", getID);
                    }
                    $.ajax({
                        url: url,
                        type: 'POST',
                        data: formData,
                        async: true,
                        cache: false,
                        contentType: false,
                        processData: false,
                        success: function (result) {

                            if (result == "error") {
                                alert(sub + "失败");
                            } else if (result == "null") {
                                alert("请填写必填项！");
                            } else {
                                alert(sub + "成功");
                                data[0] = getID;
                                $("#showFish input").each(function (i, n) {
                                    if (i > 4) return;
                                    data[i + 1] = $(this).val();
                                });
                                $("#showFish").css({"display": "none"});
                                if (sub == "添加") {
                                    data[0] = result;
                                    insertFish(data);
                                    return;
                                } else {
                                    updateFish(data, trID);
                                }

                            }

                        }
                    });
                });
                    /*提交鱼体环境污染物样本*/
                $("#submitFishEP").click(function () {
                    var data = [];
                    var sub = "";
                    var url = "op_fishEP.action";
                    var formData = new FormData($("#testFishEP")[0]);
                    var sub;
                    formData.append("sampleID", fatherFishEPId);
                    if ($(this).text() == "确认提交") {
                        formData.append("flag", "insert");
                        sub = "添加";
                    } else {
                        sub = "修改";
                        formData.append("flag", "update");
                        formData.append("id", parseInt(getID));
                    }
                    $.ajax({
                        url: url,
                        type: 'POST',
                        data: formData,
                        async: true,
                        cache: false,
                        contentType: false,
                        processData: false,
                        success: function (result) {
                            alert(result);
                            if (result == "error") {
                                alert(sub + "失败");
                            } else if (result == "null") {
                                alert("请填写必填项！");
                            } else {
                                alert(sub + "成功");
                                data[0] = getID;
                                $("#showFishEP input").each(function (i, n) {
                                    if (i > 4) return;
                                    data[i + 1] = $(this).val();
                                });
                                $("#showFishEP").css({"display": "none"});
                                if (sub == "添加") {
                                    data[0] = result;
                                    insertFishEP(data);
                                    return;
                                } else {
                                    updateFishEP(data, trID);
                                }
                            }
                        }
                    });
                });
                    /*提交卵样本*/
                $("#sumbitFishEggs").click(function () {
                    var data = [];
                    var url = "op_egg.action";
                    var formData = new FormData($("#testFishEggs")[0]);
                    var sub;
                    if ($("#PhotoEgg").val().length > 100 || $("#PhotoEgg").val().length <= 0) formData.append("isNull", "");
                    else formData.append("isNull", "有");
                    if ($(this).text() == "确认提交") {
                        formData.append("flag", "insert");
                        sub = "添加";
                        formData.append("ID_Catches", fatherFishId1);
                    } else {
                        sub = "修改";
                        formData.append("flag", "update");
                        formData.append("SampleID", getID);
                    }
                    $.ajax({
                        url: url,
                        type: 'POST',
                        data: formData,
                        async: true,
                        cache: false,
                        contentType: false,
                        processData: false,
                        success: function (result) {

                            if (result == "error") {
                                alert(sub + "失败");
                            } else if (result == "null") {
                                alert("请填写必填项！");
                            } else {
                                alert(sub + "成功");
                                data[0] = getID;
                                $("#showFishEggs input").each(function (i, n) {
                                    if (i > 4) return;
                                    data[i + 1] = $(this).val();
                                });
                                $("#showFishEggs").css({"display": "none"});
                                if (sub == "添加") {
                                    data[0] = result;
                                    insertFishEggs(data);
                                    return;
                                } else {
                                    updateFishEggs(data, trID);
                                }

                            }

                        }
                    });
                });
                    /*提交分子样本基础信息*/
                $("#submitMolecule").click(function () {
                    var data = [];
                    var sub = "";
                    var url = "op_molecule.action";
                    var formData = new FormData($("#testMolecule")[0]);
                    var sub;
                    formData.append("sampleID", fatherFishId3);
                    if ($(this).text() == "确认提交") {
                        formData.append("flag", "insert");
                        sub = "添加";
                    } else {
                        sub = "修改";
                        formData.append("flag", "update");
                        formData.append("id", parseInt(getID));
                    }
                    $.ajax({
                        url: url,
                        type: 'POST',
                        data: formData,
                        async: true,
                        cache: false,
                        contentType: false,
                        processData: false,
                        success: function (result) {

                            if (result == "error") {
                                alert(sub + "失败");
                            } else if (result == "null") {
                                alert("请填写必填项！");
                            } else {
                                alert(sub + "成功");
                                data[0] = getID;
                                $("#showMolecule input").each(function (i, n) {
                                    if (i > 2) return;
                                    data[i + 1] = $(this).val();
                                });
                                $("#showMolecule").css({"display": "none"});
                                if (sub == "添加") {
                                    data[0] = result;
                                    insertMolecule(data);
                                    return;
                                } else {
                                    updateMolecule(data, trID);
                                }

                            }

                        }
                    });
                });
                    /*提交引物*/
                $("#submitPrim").click(function () {
                    var data = [];
                    var sub = "";
                    var url = "op_prim.action";
                    var formData = new FormData($("#testPrim")[0]);
                    var sub;
                    formData.append("moleculeID", parseInt(fatherFishId4));
                    if ($(this).text() == "确认提交") {
                        formData.append("flag", "insert");
                        sub = "添加";
                    } else {
                        sub = "修改";
                        formData.append("flag", "update");
                        formData.append("id", parseInt(getID));
                    }
                    $.ajax({
                        url: url,
                        type: 'POST',
                        data: formData,
                        async: true,
                        cache: false,
                        contentType: false,
                        processData: false,
                        success: function (result) {

                            if (result == "error") {
                                alert(sub + "失败");
                            } else if (result == "null") {
                                alert("请填写必填项！");
                            } else {
                                alert(sub + "成功");
                                data[0] = getID;
                                $("#showPrim input").each(function (i, n) {
                                    if (i > 2) return;
                                    data[i + 1] = $(this).val();
                                });
                                $("#showPrim").css({"display": "none"});
                                if (sub == "添加") {
                                    data[0] = result;
                                    insertPrim(data);
                                    return;
                                } else {
                                    updatePrim(data, trID);
                                }

                            }

                        }
                    });
                });
                    /*提交单样本信息*/
                $("#submitSample").click(function () {
                    var data = [];
                    var sub = "";
                    var url = "op_sampleInfo.action";
                    var formData = new FormData($("#testSample")[0]);
                    var sub;
                    formData.append("moleculeID", parseInt(fatherFishId5));
                    if ($(this).text() == "确认提交") {
                        formData.append("flag", "insert");
                        sub = "添加";
                    } else {
                        sub = "修改";
                        formData.append("flag", "update");
                        formData.append("id", parseInt(getID));
                    }
                    $.ajax({
                        url: url,
                        type: 'POST',
                        data: formData,
                        async: true,
                        cache: false,
                        contentType: false,
                        processData: false,
                        success: function (result) {

                            if (result == "error") {
                                alert(sub + "失败");
                            } else if (result == "null") {
                                alert("请填写必填项！");
                            } else {
                                alert(sub + "成功");
                                data[0] = getID;
                                $("#showSample input").each(function (i, n) {
                                    if (i > 1) return;
                                    data[i + 1] = $(this).val();
                                });
                                $("#showSample").css({"display": "none"});
                                if (sub == "添加") {
                                    data[0] = result;
                                    insertSample(data);
                                    return;
                                } else {
                                    updateSample(data, trID);
                                }

                            }

                        }
                    });
                });
                    /*提交单群体计算数据*/
                $("#colonySubmit").click(function () {
                    var data = [];
                    var url = "op_colony.action";
                    var formData = new FormData($("#testColony")[0]);
                    var sub;
                    formData.append("sampleID", fatherFishId2);
                    if ($(this).text() == "确认提交") {
                        formData.append("flag", "insert");
                        sub = "添加";
                    } else {
                        sub = "修改";
                        formData.append("flag", "update");
                        formData.append("id", parseInt(getID));
                    }
                    $.ajax({
                        url: url,
                        type: 'POST',
                        data: formData,
                        async: true,
                        cache: false,
                        contentType: false,
                        processData: false,
                        success: function (result) {
                            if (result == "error") {
                                alert(sub + "失败");
                            } else if (result == "null") {
                                alert("请填写必填项！");
                            } else {
                                alert(sub + "成功");
                                data[0] = getID;
                                $("#showColony input").each(function (i, n) {
                                    if (i > 10) return;
                                    data[i + 1] = $(this).val();
                                });
                                $("#showColony").css({"display": "none"});
                                if (sub == "添加") {
                                    data[0] = result;
                                    insertColony(data);
                                    return;
                                } else {
                                    updateColony(data, trID);
                                }
                            }
                        }
                    });
                });
                    /*提交渔具*/
                $("#toolSumbit").click(function () {
                    var data = [];
                    var sub = "";
                    var url = "op_catools.action";
                    var formData = new FormData($("#testTool")[0]);
                    if ($("#toolPhoto").val().length > 100 || $("#toolPhoto").val().length <= 0) formData.append("isNull", "");
                    else formData.append("isNull", "有");
                    if ($(this).text() == "确认提交") {
                        sub = "添加";
                        formData.append("flag", "insert");
                        formData.append("ID_WaterLayer", fatherID);
                    } else {
                        sub = "修改";
                        formData.append("flag", "update");
                        formData.append("SampleID", toolID);
                    }
                    $.ajax({
                        url: url,
                        type: 'POST',
                        data: formData,
                        async: true,
                        cache: false,
                        contentType: false,
                        processData: false,
                        success: function (result) {
                            if (result == "error") {
                                alert(sub + "失败！");
                            } else if (result == "null") {
                                alert("请填写必填项！");
                            } else {
                                alert(sub + "成功！");
                                $("#showTool").css({"display": "none"});
                                var array = result.split(",");
                                data[0] = toolID;
                                $("#showTool input").each(function (i, n) {
                                    if (i == 7) {
                                        return;
                                    }
                                    data[i + 1] = $(this).val();

                                });


                                if (sub == "添加") {
                                    $("#showTool").css({"display": "none"});
                                    ;
                                    data[0] = array[0];
                                    updateTool(data);
                                    toolImages = array[1].split("|");
                                    return;
                                }
                                updateTool(data);
                                toolImages = result.split("|");
                            }
                        }
                    });
                });
                    /*渔具删除*/
                $("#toolDelete").click(function () {
                    var ID = $(".toolID").html();
                    deleteNode(ID);
                });
                    /*渔获物翻页*/
                $("#catchesNext").click(function () {
                    $.ajax({
                            type: "post",
                            async: true,
                            url: "QueryData.action",
                            data: {
                                "flag": "CTH",
                                "pageNumber": ++pageNumber0,
                                "monitID": selectWLE
                            },
                            success: function (result) {
                                if (result == "没有数据了") {
                                    alert(result);
                                    pageNumber0--;
                                } else {
                                    clearAllCTHData("catchesTable");
                                    addCTHData(result);
                                }
                            }

                        }
                    );
                });

                $("#catchesLast").click(function () {
                    if (pageNumber0 == 0) {
                        alert("这是第一页");
                        return;
                    }
                    $.ajax({
                            type: "post",
                            async: true,
                            url: "QueryData.action",
                            data: {
                                "flag": "CTH",
                                "pageNumber": --pageNumber0,
                                "monitID": selectWLE
                            },
                            success: function (result) {
                                if (result == "没有数据了") {
                                    alert(result);
                                    pageNumber0++;
                                } else {
                                    clearAllCTHData("catchesTable");
                                    addCTHData(result);
                                }
                            }

                        }
                    );
                });
                    /*鱼翻页*/
                $("#fishesNext").click(function () {

                    $.ajax({
                            type: "post",
                            async: true,
                            url: "QueryData.action",
                            data: {
                                "flag": "FSS",
                                "pageNumber": ++pageNumber1,
                                "monitID": selectCTHID
                            },
                            success: function (result) {
                                if (result == "没有数据了") {
                                    alert(result);
                                    pageNumber1--;
                                } else {
                                    clearAllFSSData();
                                    addFSSData(result);
                                }
                            }

                        }
                    );

                });

                $("#fishesLast").click(function () {
                    if (pageNumber1 == 0) {
                        alert("这是第一页");
                        return;
                    }
                    $.ajax({
                            type: "post",
                            async: true,
                            url: "QueryData.action",
                            data: {
                                "flag": "FSS",
                                "pageNumber": --pageNumber1,
                                "monitID": selectCTHID
                            },
                            success: function (result) {
                                if (result == "没有数据了") {
                                    alert(result);
                                    pageNumber1++;
                                } else {
                                    clearAllFSSData();
                                    addFSSData(result);
                                }
                            }

                        }
                    );

                });
                    /*卵翻页*/
                $("#fishEggsNext").click(function () {

                    $.ajax({
                            type: "post",
                            async: true,
                            url: "QueryData.action",
                            data: {
                                "flag": "FSE",
                                "pageNumber": ++pageNumber2,
                                "monitID": selectCTHID
                            },
                            success: function (result) {
                                if (result == "没有数据了") {
                                    alert(result);
                                    pageNumber2--;
                                } else {
                                    clearAllFSEData();
                                    addFSEData(result);
                                }
                            }

                        }
                    );

                });

                $("#fishEggsLast").click(function () {
                    if (pageNumber2 == 0) {
                        alert("这是第一页");
                        return;
                    }
                    $.ajax({
                            type: "post",
                            async: true,
                            url: "QueryData.action",
                            data: {
                                "flag": "FSE",
                                "pageNumber": --pageNumber2,
                                "monitID": selectCTHID
                            },
                            success: function (result) {
                                if (result == "没有数据了") {
                                    alert(result);
                                    pageNumber2++;
                                } else {
                                    clearAllFSEData();
                                    addFSEData(result);
                                }
                            }

                        }
                    );
                });

                //    			<--------------------------孙梦海增加------------------------------->
                var selectId;
                var pflag;
                var pname;
                $("#nextPage").click(function () {
                    if ($(".Fname").text().substring(0, 4) == "浮游动物") {
                        pflag = "PZO";
                        pname = "优势浮游动物";
                    }
                    else if ($(".Fname").text().substring(0, 4) == "浮游植物") {
                        pflag = "PPH";
                        pname = "优势浮游植物";
                    }
                    else if ($(".Fname").text().substring(0, 4) == "底栖生物") {
                        pflag = "PBE";
                        pname = "优势底栖生物";
                    }
                    $.ajax({
                            type: "post",
                            async: true,
                            url: "QueryData.action",
                            data: {
                                "flag": pflag,
                                "pageNumber": ++pageNumber3,
                                "monitID": $(".Fname").text().substring(5, $(".Fname").text().length),
                            },
                            success: function (result) {
                                if (result == "没有数据了") {
                                    alert(result);
                                    pageNumber3--;
                                } else {
                                    clearAllPFEAData();
                                    addPFEAData(result, pname);
                                }
                            }

                        }
                    );

                });

                $("#prevPage").click(function () {
                    if ($(".Fname").text().substring(0, 4) == "浮游动物") {
                        pflag = "PZO";
                        pname = "优势浮游动物";
                    }
                    else if ($(".Fname").text().substring(0, 4) == "浮游植物") {
                        pflag = "PPH";
                        pname = "优势浮游植物";
                    }
                    else if ($(".Fname").text().substring(0, 4) == "底栖生物") {
                        pflag = "PBE";
                        pname = "优势底栖生物";
                    }
//    				alert($(".Fname").text().substring(5,$(".Fname").text().length)+"---"+pflag);
                    if (pageNumber3 == 0) {
                        alert("这是第一页");
                        return;
                    }
                    $.ajax({
                            type: "post",
                            async: true,
                            url: "QueryData.action",
                            data: {
                                "flag": pflag,
                                "pageNumber": --pageNumber3,
                                "monitID": $(".Fname").text().substring(5, $(".Fname").text().length),
                            },
                            success: function (result) {
                                if (result == "没有数据了") {
                                    alert(result);
                                    pageNumber3++;
                                } else {
                                    clearAllPFEAData();
                                    addPFEAData(result, pname);
                                }
                            }

                        }
                    );
                });
                //    			<--------------------------孙梦海增加------------------------------->

                //------------------------------------------------------------------------------------------

            }
        )
        ;
        //<---------------------孙梦海增加------------------>
    </script>

    <!-- <script type="text/javascript" src="js/toolAndFish.js"></script>

<!-- 表单验证 -->
    <script type="text/javascript" src="js/jquery.validate.min.js"></script>
    <!-- 省市县区级联插件 -->
    <script type="text/javascript" src="js/PCASClass.js"></script>

</head>
<body>
<div id="showAll" class="hideView">
    <%@ include file="showPhotoView.jsp" %>
</div>

<div id="showTool" class="hideView">
    <%@ include file="toolView.jsp" %>
</div>

<div id="showDetection" class="hideView">
    <%@ include file="detectionView.jsp" %>
</div>

<div id="showGet" class="hideView">
    <%@ include file="catchesView.jsp" %>
</div>

<div id="showFish" class="hideView">
    <%@ include file="fishView.jsp" %>
</div>

<div id="showFishEP" class="hideView">
    <%@ include file="fishEPView.jsp" %>
</div>

<div id="showFishEggs" class="hideView">
    <%@ include file="showFishEggsView.jsp" %>
</div>

<div id="showMolecule" class="hideView">
    <%@ include file="moleculeView.jsp" %>
</div>

<div id="showPrim" class="hideView">
    <%@ include file="primView.jsp" %>
</div>

<div id="showSample" class="hideView">
    <%@ include file="sampleInfoView.jsp" %>
</div>

<div id="showColony" class="hideView">
    <%@ include file="colonyView.jsp" %>
</div>

<div id="showWLE" class="hideView">
    <%@ include file="wleView.jsp" %>
</div>

<div class="article">
    <div id="tree-outer" style="height: 95%;">
        <div id="tree">

        </div>
        <div class="treePage"
             style="position:relative; bottom:0px; padding:8px; height:3.1%; width:280px; background-color:#FFF0; text-align:center;">
            <button id="firstPage" class="btn btn-primary">首页</button>
            <button id="prePage" class="btn btn-primary"><i style="color: #fff;" class="fa fa-chevron-left"></i>
            </button>
            <div id="inputPage" class="btn btn-primary"><input id="page" type="text"/> / <span id="all">2000</span>页
            </div>
            <button id="nexPage" class="btn btn-primary"><i style="color: #fff;" class="fa fa-chevron-right"></i>
            </button>
            <button id="lastPage" class="btn btn-primary">尾页</button>
        </div>

    </div>
    <div id="right-map"></div>
    <div id="map-exit"></div>
    <div id="tree-table">
        <!-- 搜索 -->
        <div class="search-box">
            <span id="search-title">监测点筛选</span>
            <form id="search-form" enctype="multipart/form-data">
                <span>水域:</span> <input type="text" id="search-river" name="River" maxlength="20"
                                        placeholder="20位以内的字符">
                <span>详细地点:</span> <input type="text" id="search-site" name="Institution" maxlength="60"
                                          placeholder="60位以内的字符">
                <span>日期:</span> <input type="text" id="search-date" name="EndTime" placeholder="请输入日期" id="d233"
                                        onFocus="WdatePicker({startDate:'00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})">
                <button id="search" class="btn btn-primary"> 搜索</button>
            </form>
            <button id="hiddenSearch" class="btn btn-primary"> 关闭搜索</button>
        </div>
        <button id="showSearch" class="btn btn-primary"  <%=show%>> 开始搜索</button>

        <div id="node-text"></div>
        <div id="tree-menu">
            <button id="add-child-node" class="btn btn-primary" <%=able%>><span class="glyphicon glyphicon-plus"></span>&nbsp添加子节点
            </button>
            <button id="delete-node" class="btn btn-danger" <%=able%>><span class="glyphicon glyphicon-trash"></span>&nbsp删除本节点
            </button>
            <div id="tree-map2"></div>
        </div>
        <div id="input-place">
            <!-- 		添加监测点			 -->
            <form id="monitsite_check" method="get" action="" enctype="multipart/form-data">
                <div id="add-monitsite" class="add-data" style="display:none">
                    <div class="context5">
                        <div class="float-left1">
                            <span>监测单位:&nbsp</span><br>
                            <span>监测人员:&nbsp</span><br>
                            <span>日期:&nbsp</span><br>
                            <span>水域:&nbsp</span><br>
                            <span>照片:&nbsp</span><br>
                            <span>开始时间:&nbsp</span><br>
                        </div>
                        <div class="float-left2">
                            <input type="text" id="Institution1" name="Institution" maxlength="60"
                                   placeholder="60位以内的字符" <%=readonly%>><font>&nbsp*</font></input><br>
                            <input type="text" id="Investigator1" name="Investigator" maxlength="40"
                                   placeholder="多人名用“|”分隔" <%=readonly%>><font>&nbsp*</font></input><br>
                            <input type="text" id="InvestigationDate1" name="InvestigationDate"
                                   placeholder="请输入日期" <%=readonly%> id="d233"
                                   onFocus="WdatePicker({startDate:'00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})"><font>&nbsp*</font></input>
                            <br>
                            <input type="text" id="River1" name="River" maxlength="20"
                                   placeholder="20位以内的字符" <%=readonly%>><font>&nbsp*</font></input><br>
                            <input type="file" name="Photo" id="Photo1" multiple="true" class="monitsite-height"
                                   accept="image/*" <%=readonly%> <%=disselect%>></input>
                            <button id="monitsiteButton" type="button" style="display:none;">查看上传的照片</button>
                            <br>
                            <input type="text" id="StartTime1" name="StartTime" placeholder="请输入开始时间" id="d233"
                                   onFocus="WdatePicker({startDate:'00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" <%=readonly%>></input><br>
                        </div>
                        <div class="float-left3">
                            <span>结束时间:&nbsp</span><br>
                            <span>起点经度:&nbsp</span><br>
                            <span>起点纬度:&nbsp</span><br>
                            <span>终点经度:&nbsp</span><br>
                            <span>终点纬度:&nbsp</span><br>
                            <span>天气:&nbsp</span><br>


                        </div>
                        <div class="float-left2">
                            <input type="text" id="EndTime1" name="EndTime" placeholder="请输入结束时间" id="d233"
                                   onFocus="WdatePicker({startDate:'00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" <%=readonly%>></input><br>
                            <input type="text" id="StartLongitude1" name="StartLongitude" maxlength="12"
                                   placeholder="-180~+180内的数" <%=readonly%>><span class="unit">°</span></input><br>
                            <input type="text" id="StartLatitude1" name="StartLatitude" maxlength="11"
                                   placeholder="-90~+90内的数" <%=readonly%>><span class="unit">°</span></input><br>
                            <input type="text" id="EndLongitude1" name="EndLongitude" maxlength="12"
                                   placeholder="-180~180内的数" <%=readonly%>><span class="unit">°</span></input><br>
                            <input type="text" id="EndLatitude1" name="EndLatitude" maxlength="11"
                                   placeholder="-90~+90内的数" <%=readonly%>><span class="unit">°</span></input><br>
                            <!-- <input type="text" id="Weather1" name="Weather" maxlength="4" placeholder="4位以内字符"><font>&nbsp*</font></input><br> -->
                            <select class="select" id="Weather1" name="Weather" <%=disselect%>>
                                <option value="晴">晴</option>
                                <option value="多云">多云</option>
                                <option value="雨">小雨</option>
                                <option value="雪">中雨</option>
                                <option value="雪">大雨</option>
                            </select><br>
                        </div>
                        <div class="float-left1">
                            <span>气温:&nbsp</span><br>
                            <span>省市:&nbsp</span><br>
                            <span>详细地点:&nbsp</span><br>
                        </div>
                        <div class="select-address">
                            <input type="text" id="Temperature1" name="Temperature" maxlength="5"
                                   placeholder="2-4位数字" <%=disselect%>><span class="unit">℃</span></input><br>
                            <!-- 					省市县区选择下拉列表 -->
                            <div>
                                <select id="province" name="province" class="monitsite-select" <%=disselect%>></select>
                                <select id="city" name="city" class="monitsite-select" <%=disselect%>></select>
                                <select id="area" name="area" class="monitsite-select" <%=disselect%>></select><font
                                    color="red">&nbsp*</font>
                                <br><input type="text" id="Site1" name="Site1" placeholder="请输入更加详细的地名"
                                           style="width:400px;" <%=readonly%>><font color="red">&nbsp*</font></input>
                                <br>
                            </div>
                        </div>
                    </div>
                </div>
            </form>


            <form id="surface_check" method="get" action="">
                <div id="add-surface" class="add-data" style="display:none">
                    <div class="context5">
                        <div class="float-left1">
                            <span>采样方位:&nbsp</span><br>
                        </div>
                        <div class="float-left2">
                            <select id="selectSurface" class="select" <%=disselect%>>
                                <option value="左岸">左岸</option>
                                <option value="中间">中间</option>
                                <option value="右岸">右岸</option>
                            </select><font>&nbsp*</font>
                        </div>
                        <div class="float-left3">
                            <span>距岸距离:&nbsp</span><br>
                        </div>
                        <div class="float-left2">
                            <input type="text" id="Distance2Bank2" name="Distance2Bank2"
                                   placeholder="不超过10位整数" <%=readonly%>><span class="unit">m</span></input>&nbsp<h4
                                class="error" id="Distance2Bank2Error"></h4><br>
                        </div>

                    </div>
                </div>
            </form>

            <div id="add-line" class="add-data" style="display:none">
                <div class="context5">
                    <div class="float-left1">
                        <span>起点经度:&nbsp</span><br>
                        <span>起点纬度:&nbsp</span><br>
                    </div>
                    <div class="float-left2">
                        <input type="text" id="StartLongitude3" name="StartLongitude3" maxlength="12"
                               placeholder="-180~180" <%=readonly%>><span class="unit">°</span></input>&nbsp<h4
                            class="error" id="StartLongitude3Error"></h4><br>
                        <input type="text" id="StartLatitude3" name="StartLatitude3" maxlength="11"
                               placeholder="-90~90" <%=readonly%>><span class="unit">°</span></input>&nbsp<h4
                            class="error" id="StartLatitude3Error"></h4><br>
                    </div>
                    <div class="float-left3">
                        <span>终点经度:&nbsp</span><br>
                        <span>终点纬度:&nbsp</span><br>
                    </div>
                    <div class="float-left2">
                        <input type="text" id="EndLongitude3" name="EndLongitude3" maxlength="12"
                               placeholder="-180~180" <%=readonly%>><span class="unit">°</span></input>&nbsp<h4
                            class="error" id="EndLongitude3Error"></h4><br>
                        <input type="text" id="EndLatitude3" name="EndLatitude3" maxlength="11"
                               placeholder="-90~90" <%=readonly%>><span class="unit">°</span></input>&nbsp<h4
                            class="error" id="EndLatitude3Error"></h4><br>
                    </div>
                </div>
            </div>

            <div id="add-Dot" class="add-data" style="display:none">
                <div class="context5">
                    <div class="float-left1">
                        <span>经度:&nbsp</span><br>
                    </div>
                    <div class="float-left2">
                        <input type="text" id="LongitudeDot" maxlength="12" placeholder="-180~180" <%=readonly%>><span
                            class="unit">°</span></input>&nbsp<h4 class="error" id="LongitudeDotError"></h4><br>
                    </div>

                    <div class="float-left3">
                        <span>纬度:&nbsp</span><br>
                    </div>
                    <div class="float-left2">
                        <input type="text" id="LatitudeDot" maxlength="11" placeholder="-90~90" <%=readonly%>><span
                            class="unit">°</span></input>&nbsp<h4 class="error" id="LatitudeDotError"></h4><br>
                    </div>
                </div>
            </div>

            <div id="add-water" class="add-data" style="display:none">
                <div class="context5">
                    <div class="float-left1">
                        <span>水层:&nbsp</span><br>
                        <span>深度:&nbsp</span><br>
                        <span>水温:&nbsp</span><br>

                    </div>
                    <div class="float-left2">
                        <select class="select" id="selectWater" onfocus="this.defaultIndex=this.selectedIndex;"
                                onchange="this.selectedIndex=this.defaultIndex;" <%=readonly%>>
                            <option value="上">上</option>
                            <option value="中">中</option>
                            <option value="下">下</option>
                            <option value="混合">混合</option>
                        </select><font>&nbsp*</font><br>
                        <input type="text" id="Depath" placeholder="最多5位数字 " maxlength="5" <%=readonly%>><span
                            class="unit">m</span></input>&nbsp<h4 class="error" id="DepathError"></h4><br>
                        <input type="text" id="waterWarm" placeholder="最多5位数字" maxlength="5" <%=readonly%>><span
                            class="unit">℃</span></input>&nbsp<h4 class="error" id="waterWarmError"></h4><br>

                    </div>
                    <div class="float-left3">
                        <span>水位:&nbsp</span><br>
                        <span>流量:&nbsp</span><br>
                    </div>
                    <div class="float-left2">
                        <input type="text" id="waterHeight" placeholder="最多5位数字" maxlength="5" <%=readonly%>></input>&nbsp
                        <h4 class="error" id="waterHeightError"></h4><br>
                        <input type="text" id="waterFlow" placeholder="最多10位数字" maxlength="10" <%=readonly%>><span
                            class="unit">㎥/s</span></input>&nbsp<h4 class="error" id="waterFlowError"></h4><br>
                    </div>
                </div>

                <div class="WLE">
                    <h4 class="thead">网具表 <br>
                        <button id="addTool" class="btn btn-primary" style="display:none" <%=able%>><span
                                class="glyphicon glyphicon-plus"></span>&nbsp添加网具
                        </button>
                    </h4>
                    <table class="table" id="toolTable">
                        <tr>
                            <th>ID</th>
                            <th>名称</th>
                            <th>网形</th>
                            <th>网口面积</th>
                            <th>网口倾角</th>
                            <th>开始时间</th>
                            <th>结束时间</th>
                            <th>网口流速</th>
                            <th>照片</th>
                            <th style="display:<%=tr%>">操作</th>
                        </tr>
                        <tr>
                            <td id="left" class="toolID"></td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td>
                                <button id="toolButton" class="btn1 btn-primary">查看</button>
                            </td>
                            <td style="display:<%=tr%>">
                                <button id="updateTool" class="btn1 btn-primary" <%=able%>>修改</button>
                                &nbsp;<button id="toolDelete" class="btn1 btn-danger" <%=able%>>删除</button>
                            </td>
                        </tr>
                    </table>
                </div>

                <%--nong--%>
                <div class="WLE">
                    <h4 class="thead">水质监测数据表 <br>
                        <button id="addDetection" class="btn btn-primary" style="display:<%=tag%>"><span
                                class="glyphicon glyphicon-plus"></span>&nbsp添加水质监测数据
                        </button>
                    </h4>
                    <table class="table" id="detectionTable">
                        <tr>
                            <th>ID</th>
                            <th>指标编号</th>
                            <th>指标名称</th>
                            <th>指标值</th>
                            <th style="display:<%=tr%>">操作</th>
                        </tr>
                        <tr id="wa">
                            <td id="left" class="detectionID"></td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td style="display:<%=tr%>">
                                <button id="updateDetection" class="btn1 btn-primary" <%=able%>>修改</button>
                                &nbsp;<button id="detectionDelete" class="btn1 btn-danger" <%=able%>>删除</button>
                            </td>
                        </tr>
                        <tr id="wb">
                            <td id="left" class="detectionID"></td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td style="display:<%=tr%>">
                                <button id="updateDetection1" class="btn1 btn-primary" <%=able%>>修改</button>
                                &nbsp;<button id="detectionDelete1" class="btn1 btn-danger" <%=able%>>删除</button>
                            </td>
                        </tr>
                        <tr id="wc">
                            <td id="left" class="detectionID"></td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td style="display:<%=tr%>">
                                <button id="updateDetection2" class="btn1 btn-primary" <%=able%>>修改</button>
                                &nbsp;<button id="detectionDelete2" class="btn1 btn-danger" <%=able%>>删除</button>
                            </td>
                        </tr>
                        <tr id="wd">
                            <td id="left" class="detectionID"></td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td style="display:<%=tr%>">
                                <button id="updateDetection3" class="btn1 btn-primary" <%=able%>>修改</button>
                                &nbsp;<button id="detectionDelete3" class="btn1 btn-danger" <%=able%>>删除</button>
                            </td>
                        </tr>
                        <tr id="we">
                            <td id="left" class="detectionID"></td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td style="display:<%=tr%>">
                                <button id="updateDetection4" class="btn1 btn-primary" <%=able%>>修改</button>
                                &nbsp;<button id="detectionDelete4" class="btn1 btn-danger" <%=able%>>删除</button>
                            </td>
                        </tr>
                    </table>
                </div>
                <%--nong--%>

                <div class="WLE WLE_Marginbottom">
                    <h4 class="thead">渔获物表 <br>
                        <button id="addGet" class="btn btn-primary" style="display:<%=tag%>"><span
                                class="glyphicon glyphicon-plus"></span>&nbsp添加渔获物
                        </button>
                    </h4>
                    <table class="table" id="catchesTable">
                        <tr>
                            <th>ID</th>
                            <th>鱼类名称</th>
                            <th>卵苗总数</th>
                            <th>鱼卵数</th>
                            <th>幼鱼数</th>
                            <th>照片</th>
                            <th>鱼样本</th>
                            <th>卵样本</th>
                            <th>单群体计算</th>
                            <th style="display:<%=tr%>">操作</th>
                        </tr>
                        <tr id="a">
                            <td id="left" class="a"></td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td>
                                <button id="catchesButton" class="btn1 btn-primary">查看</button>
                            </td>
                            <td>
                                <button id="seeFishes0" class="btn1 btn-primary">查看</button>
                                &nbsp;<button id="addFishes" class="btn1 btn-primary"
                                              style="display:<%=tag%>" <%=able%>>添加
                            </button>
                            </td>
                            <td>
                                <button id="seeFishEgg0" class="btn1 btn-primary">查看</button>
                                &nbsp;<button id="addFishEgg0" class="btn1 btn-primary"
                                              style="display:<%=tag%>" <%=able%>>添加
                            </button>
                            </td>
                            <td>
                                <button id="seeColony" class="btn1 btn-primary">查看</button>
                                &nbsp;<button id="addColony" class="btn1 btn-primary"
                                              style="display:<%=tag%>" <%=able%>>添加
                            </button>
                            </td>
                            <td style="display:<%=tr%>">
                                <button id="updateGet" class="btn1 btn-primary" <%=able%>>修改</button>
                                &nbsp;<button id="getDelete0" class="btn1 btn-danger" <%=able%>>删除</button>
                            </td>
                        </tr>
                        <tr id="b">
                            <td id="left" class="b"></td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td>
                                <button id="catchesButton1" class="btn1 btn-primary">查看</button>
                            </td>
                            <td>
                                <button id="seeFishes1" class="btn1 btn-primary">查看</button>
                                &nbsp;<button id="addFishes1" class="btn1 btn-primary"
                                              style="display:<%=tag%>" <%=able%>>添加
                            </button>
                            </td>
                            <td>
                                <button id="seeFishEgg1" class="btn1 btn-primary">查看</button>
                                &nbsp;<button id="addFishEgg1" class="btn1 btn-primary"
                                              style="display:<%=tag%>" <%=able%>>添加
                            </button>
                            </td>
                            <td>
                                <button id="seeColony1" class="btn1 btn-primary">查看</button>
                                &nbsp;<button id="addColony1" class="btn1 btn-primary"
                                              style="display:<%=tag%>" <%=able%>>添加
                            </button>
                            </td>
                            <td style="display:<%=tr%>">
                                <button id="updateGet1" class="btn1 btn-primary" <%=able%>>修改</button>
                                &nbsp;<button id="getDelete1" class="btn1 btn-danger" <%=able%>>删除</button>
                            </td>
                        </tr>
                        <tr id="c">
                            <td id="left"></td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td>
                                <button id="catchesButton2" class="btn1 btn-primary">查看</button>
                            </td>
                            <td>
                                <button id="seeFishes2" class="btn1 btn-primary">查看</button>
                                &nbsp;<button id="addFishes2" class="btn1 btn-primary"
                                              style="display:<%=tag%>" <%=able%>>添加
                            </button>
                            </td>
                            <td>
                                <button id="seeFishEgg2" class="btn1 btn-primary">查看</button>
                                &nbsp;<button id="addFishEgg2" class="btn1 btn-primary"
                                              style="display:<%=tag%>" <%=able%>>添加
                            </button>
                            </td>
                            <td>
                                <button id="seeColony2" class="btn1 btn-primary">查看</button>
                                &nbsp;<button id="addColony2" class="btn1 btn-primary"
                                              style="display:<%=tag%>" <%=able%>>添加
                            </button>
                            </td>
                            <td style="display:<%=tr%>">
                                <button id="updateGet2" class="btn1 btn-primary" <%=able%>>修改</button>
                                &nbsp;<button id="getDelete2" class="btn1 btn-danger" <%=able%>>删除</button>
                            </td>
                        </tr>
                        <tr id="d">
                            <td id="left"></td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td>
                                <button id="catchesButton3" class="btn1 btn-primary">查看</button>
                            </td>
                            <td>
                                <button id="seeFishes3" class="btn1 btn-primary">查看</button>
                                &nbsp;<button id="addFishes3" class="btn1 btn-primary"
                                              style="display:<%=tag%>" <%=able%>>添加
                            </button>
                            </td>
                            <td>
                                <button id="seeFishEgg3" class="btn1 btn-primary">查看</button>
                                &nbsp;<button id="addFishEgg3" class="btn1 btn-primary"
                                              style="display:<%=tag%>" <%=able%>>添加
                            </button>
                            </td>
                            <td>
                                <button id="seeColony3" class="btn1 btn-primary">查看</button>
                                &nbsp;<button id="addColony3" class="btn1 btn-primary"
                                              style="display:<%=tag%>" <%=able%>>添加
                            </button>
                            </td>
                            <td style="display:<%=tr%>">
                                <button id="updateGet3" class="btn1 btn-primary" <%=able%>>修改</button>
                                &nbsp;<button id="getDelete3" class="btn1 btn-danger" <%=able%>>删除</button>
                            </td>
                        </tr>
                        <tr id="e">
                            <td id="left"></td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td>
                                <button id="catchesButton4" class="btn1 btn-primary">查看</button>
                            </td>
                            <td>
                                <button id="seeFishes4" class="btn1 btn-primary">查看</button>
                                &nbsp;<button id="addFishes4" class="btn1 btn-primary"
                                              style="display:<%=tag%>" <%=able%>>添加
                            </button>
                            </td>
                            <td>
                                <button id="seeFishEgg4" class="btn1 btn-primary">查看</button>
                                &nbsp;<button id="addFishEgg4" class="btn1 btn-primary"
                                              style="display:<%=tag%>" <%=able%>>添加
                            </button>
                            </td>
                            <td>
                                <button id="seeColony4" class="btn1 btn-primary">查看</button>
                                &nbsp;<button id="addColony4" class="btn1 btn-primary"
                                              style="display:<%=tag%>" <%=able%>>添加
                            </button>
                            </td>
                            <td style="display:<%=tr%>">
                                <button id="updateGet4" class="btn1 btn-primary" <%=able%>>修改</button>
                                &nbsp;<button id="getDelete4" class="btn1 btn-danger" <%=able%>>删除</button>
                            </td>
                        </tr>

                    </table>

                    <button class="lastButton" id="catchesLast">上一页</button>
                    <button class="nextButton" id="catchesNext">下一页</button>
                    <%--鱼样本表--%>
                    <div id="fishesDiv" style="display:none">
                        <h4 class="thead">鱼样本 <br></h4>
                        <table class="table" id="Fishes">
                            <tr>
                                <th>ID</th>
                                <th>体长</th>
                                <th>全长</th>
                                <th>体重</th>
                                <th>年龄</th>
                                <th>照片</th>
                                <th>鱼体环境污染物</th>
                                <th>分子样本基础信息</th>
                                <th style="display:<%=tr%>">操作</th>
                            </tr>
                            <tr id="a">
                                <td id="left"></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td>
                                    <button id="fishedButton0" class="btn1 btn-primary">查看</button>
                                </td>
                                <td>
                                    <button id="seeFishEP" class="btn1 btn-primary" <%=able%>>查看</button>
                                    &nbsp;<button id="addFishEP" class="btn1 btn-primary" <%=able%>>添加</button>
                                </td>
                                <td>
                                    <button id="seeMolecule" class="btn1 btn-primary" <%=able%>>查看</button>
                                    &nbsp;<button id="addMolecule" class="btn1 btn-primary" <%=able%>>添加</button>
                                </td>
                                <td style="display:<%=tr%>">
                                    <button id="updateFish0" class="btn1 btn-primary" <%=able%>>修改</button>
                                    &nbsp;<button id="fishDelete0" class="btn1 btn-danger" <%=able%>>删除</button>
                                </td>
                            </tr>
                            <tr id="b">
                                <td id="left"></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td>
                                    <button id="fishedButton1" class="btn1 btn-primary">查看</button>
                                </td>
                                <td>
                                    <button id="seeFishEP1" class="btn1 btn-primary" <%=able%>>查看</button>
                                    &nbsp;<button id="addFishEP1" class="btn1 btn-primary" <%=able%>>添加</button>
                                </td>
                                <td>
                                    <button id="seeMolecule1" class="btn1 btn-primary" <%=able%>>查看</button>
                                    &nbsp;<button id="addMolecule1" class="btn1 btn-primary" <%=able%>>添加</button>
                                </td>
                                <td style="display:<%=tr%>">
                                    <button id="updateFish1" class="btn1 btn-primary"<%=able%>>修改</button>
                                    &nbsp;<button id="fishDelete1" class="btn1 btn-danger"<%=able%>>删除</button>
                                </td>
                            </tr>
                            <tr id="c">
                                <td id="left"></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td>
                                    <button id="fishedButton2" class="btn1 btn-primary">查看</button>
                                </td>
                                <td>
                                    <button id="seeFishEP2" class="btn1 btn-primary" <%=able%>>查看</button>
                                    &nbsp;<button id="addFishEP2" class="btn1 btn-primary" <%=able%>>添加</button>
                                </td>
                                <td>
                                    <button id="seeMolecule2" class="btn1 btn-primary" <%=able%>>查看</button>
                                    &nbsp;<button id="addMolecule2" class="btn1 btn-primary" <%=able%>>添加</button>
                                </td>
                                <td style="display:<%=tr%>">
                                    <button id="updateFish2" class="btn1 btn-primary"<%=able%>>修改</button>
                                    &nbsp;<button id="fishDelete2" class="btn1 btn-danger"<%=able%>>删除</button>
                                </td>
                            </tr>
                            <tr id="d">
                                <td id="left"></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td>
                                    <button id="fishedButton3" class="btn1 btn-primary">查看</button>
                                </td>
                                <td>
                                    <button id="seeFishEP3" class="btn1 btn-primary" <%=able%>>查看</button>
                                    &nbsp;<button id="addFishEP3" class="btn1 btn-primary" <%=able%>>添加</button>
                                </td>
                                <td>
                                    <button id="seeMolecule3" class="btn1 btn-primary" <%=able%>>查看</button>
                                    &nbsp;<button id="addMolecule3" class="btn1 btn-primary" <%=able%>>添加</button>
                                </td>
                                <td style="display:<%=tr%>">
                                    <button id="updateFish3" class="btn1 btn-primary"<%=able%>>修改</button>
                                    &nbsp;<button id="fishDelete3" class="btn1 btn-danger"<%=able%>>删除</button>
                                </td>
                            </tr>
                            <tr id="e">
                                <td id="left"></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td>
                                    <button id="fishedButton4" class="btn1 btn-primary">查看</button>
                                </td>
                                <td>
                                    <button id="seeFishEP4" class="btn1 btn-primary" <%=able%>>查看</button>
                                    &nbsp;<button id="addFishEP4" class="btn1 btn-primary" <%=able%>>添加</button>
                                </td>
                                <td>
                                    <button id="seeMolecule4" class="btn1 btn-primary" <%=able%>>查看</button>
                                    &nbsp;<button id="addMolecule4" class="btn1 btn-primary" <%=able%>>添加</button>
                                </td>
                                <td style="display:<%=tr%>">
                                    <button id="updateFish4" class="btn1 btn-primary"<%=able%>>修改</button>
                                    &nbsp;<button id="fishDelete4" class="btn1 btn-danger"<%=able%>>删除</button>
                                </td>
                            </tr>
                        </table>
                        <button class="lastButton" id="fishesLast">上一页</button>
                        <button class="nextButton" id="fishesNext">下一页</button>
                    </div>
                    <%--鱼体环境污染物--%>
                    <div id="fishEPDiv" style="display:none">
                        <h4 class="thead">鱼体环境污染物 <br></h4>
                        <table class="table" id="FishEP">
                            <tr>
                                <th>ID</th>
                                <th>指标编号</th>
                                <th>指标名称</th>
                                <th>指标值</th>
                                <th>取样部位</th>
                                <th style="display:<%=tr%>">操作</th>
                            </tr>
                            <tr id="a">
                                <td id="left"></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td style="display:<%=tr%>">
                                    <button id="updateFishEP" class="btn1 btn-primary" <%=able%>>修改</button>
                                    &nbsp;<button id="fishEPDelete" class="btn1 btn-danger" <%=able%>>删除</button>
                                </td>
                            </tr>
                            <tr id="b">
                                <td id="left"></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td style="display:<%=tr%>">
                                    <button id="updateFishEP1" class="btn1 btn-primary"<%=able%>>修改</button>
                                    &nbsp;<button id="fishEPDelete1" class="btn1 btn-danger"<%=able%>>删除</button>
                                </td>
                            </tr>
                            <tr id="c">
                                <td id="left"></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td style="display:<%=tr%>">
                                    <button id="updateFishEP2" class="btn1 btn-primary"<%=able%>>修改</button>
                                    &nbsp;<button id="fishEPDelete2" class="btn1 btn-danger"<%=able%>>删除</button>
                                </td>
                            </tr>
                            <tr id="d">
                                <td id="left"></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td style="display:<%=tr%>">
                                    <button id="updateFishEP3" class="btn1 btn-primary"<%=able%>>修改</button>
                                    &nbsp;<button id="fishEPDelete3" class="btn1 btn-danger"<%=able%>>删除</button>
                                </td>
                            </tr>
                            <tr id="e">
                                <td id="left"></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td style="display:<%=tr%>">
                                    <button id="updateFishEP4" class="btn1 btn-primary"<%=able%>>修改</button>
                                    &nbsp;<button id="fishEPDelete4" class="btn1 btn-danger"<%=able%>>删除</button>
                                </td>
                            </tr>
                        </table>
                        <button class="lastButton" id="fishEPLast">上一页</button>
                        <button class="nextButton" id="fishEPNext">下一页</button>
                    </div>
                    <%--卵样本--%>
                    <div id="FishEggsDiv" style="display:none">
                        <h4 class="thead">卵样本表 <br></h4>
                        <table class="table" id="FishEggs">
                            <tr>
                                <th>ID</th>
                                <th>发育期</th>
                                <th>鱼卵卵径</th>
                                <th>鱼卵卵膜径</th>
                                <th>色素性状</th>
                                <th>胚胎性状</th>
                                <th>照片</th>
                                <th>分子样本基础信息</th>
                                <th style="display:<%=tr%>">操作</th>
                            </tr>
                            <tr id="a">
                                <td id="left"></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td>
                                    <button id="fishEggsButton0" class="btn1 btn-primary">查看</button>
                                </td>
                                <td>
                                    <button id="seeMolecule5" class="btn1 btn-primary" <%=able%>>查看</button>
                                    &nbsp;<button id="addMolecule5" class="btn1 btn-primary" <%=able%>>添加</button>
                                </td>
                                <td style="display:<%=tr%>">
                                    <button id="updateFishEggs0" class="btn1 btn-primary"<%=able%>>修改</button>
                                    &nbsp;<button id="fishEggsDelete0" class="btn1 btn-danger"<%=able%>>删除</button>
                                </td>
                            </tr>
                            <tr id="b">
                                <td id="left"></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td>
                                    <button id="fishEggsButton1" class="btn1 btn-primary">查看</button>
                                </td>
                                <td>
                                    <button id="seeMolecule6" class="btn1 btn-primary" <%=able%>>查看</button>
                                    &nbsp;<button id="addMolecule6" class="btn1 btn-primary" <%=able%>>添加</button>
                                </td>
                                <td style="display:<%=tr%>">
                                    <button id="updateFishEggs1" class="btn1 btn-primary"<%=able%>>修改</button>
                                    &nbsp;<button id="fishEggsDelete1" class="btn1 btn-danger"<%=able%>>删除</button>
                                </td>
                            </tr>
                            <tr id="c">
                                <td id="left"></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td>
                                    <button id="fishEggsButton2" class="btn1 btn-primary">查看</button>
                                </td>
                                <td>
                                    <button id="seeMolecule7" class="btn1 btn-primary" <%=able%>>查看</button>
                                    &nbsp;<button id="addMolecule7" class="btn1 btn-primary" <%=able%>>添加</button>
                                </td>
                                <td style="display:<%=tr%>">
                                    <button id="updateFishEggs2" class="btn1 btn-primary"<%=able%>>修改</button>
                                    &nbsp;<button id="fishEggsDelete2" class="btn1 btn-danger"<%=able%>>删除</button>
                                </td>
                            </tr>
                            <tr id="d">
                                <td id="left"></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td>
                                    <button id="fishEggsButton3" class="btn1 btn-primary">查看</button>
                                </td>
                                <td>
                                    <button id="seeMolecule8" class="btn1 btn-primary" <%=able%>>查看</button>
                                    &nbsp;<button id="addMolecule8" class="btn1 btn-primary" <%=able%>>添加</button>
                                </td>
                                <td style="display:<%=tr%>">
                                    <button id="updateFishEggs3" class="btn1 btn-primary"<%=able%>>修改</button>
                                    &nbsp;<button id="fishEggsDelete3" class="btn1 btn-danger"<%=able%>>删除</button>
                                </td>
                            </tr>
                            <tr id="e">
                                <td id="left"></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td>
                                    <button id="fishEggsButton4" class="btn1 btn-primary">查看</button>
                                </td>
                                <td>
                                    <button id="seeMolecule9" class="btn1 btn-primary" <%=able%>>查看</button>
                                    &nbsp;<button id="addMolecule9" class="btn1 btn-primary" <%=able%>>添加</button>
                                </td>
                                <td style="display:<%=tr%>">
                                    <button id="updateFishEggs4" class="btn1 btn-primary"<%=able%>>修改</button>
                                    &nbsp;<button id="fishEggsDelete4" class="btn1 btn-danger"<%=able%>>删除</button>
                                </td>
                            </tr>
                        </table>
                        <button class="lastButton" id="fishEggsLast">上一页</button>
                        <button class="nextButton" id="fishEggsNext">下一页</button>
                    </div>
                    <%--分子样本基础信息--%>
                    <div id="moleculeDiv" style="display:none">
                        <h4 class="thead">分子样本基础信息表 <br></h4>
                        <table class="table" id="Molecule">
                            <tr>
                                <th>ID</th>
                                <th>分析人员编号</th>
                                <th>软件</th>
                                <th>参考文献</th>
                                <th>引物</th>
                                <th>单样本信息</th>
                                <th style="display:<%=tr%>">操作</th>
                            </tr>
                            <tr id="a">
                                <td id="left"></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td>
                                    <button id="seePrim" class="btn1 btn-primary" <%=able%>>查看</button>
                                    &nbsp;<button id="addPrim" class="btn1 btn-primary" <%=able%>>添加</button>
                                </td>
                                <td>
                                    <button id="seeSample" class="btn1 btn-primary" <%=able%>>查看</button>
                                    &nbsp;<button id="addSample" class="btn1 btn-primary" <%=able%>>添加</button>
                                </td>
                                <td style="display:<%=tr%>">
                                    <button id="updateMolecule" class="btn1 btn-primary" <%=able%>>修改</button>
                                    &nbsp;<button id="moleculeDelete" class="btn1 btn-danger" <%=able%>>删除</button>
                                </td>
                            </tr>
                            <tr id="b">
                                <td id="left"></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td>
                                    <button id="seePrim1" class="btn1 btn-primary" <%=able%>>查看</button>
                                    &nbsp;<button id="addPrim1" class="btn1 btn-primary" <%=able%>>添加</button>
                                </td>
                                <td>
                                    <button id="seeSample1" class="btn1 btn-primary" <%=able%>>查看</button>
                                    &nbsp;<button id="addSample1" class="btn1 btn-primary" <%=able%>>添加</button>
                                </td>
                                <td style="display:<%=tr%>">
                                    <button id="updateMolecule1" class="btn1 btn-primary" <%=able%>>修改</button>
                                    &nbsp;<button id="moleculeDelete1" class="btn1 btn-danger" <%=able%>>删除</button>
                                </td>
                            </tr>
                            <tr id="c">
                                <td id="left"></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td>
                                    <button id="seePrim2" class="btn1 btn-primary" <%=able%>>查看</button>
                                    &nbsp;<button id="addPrim2" class="btn1 btn-primary" <%=able%>>添加</button>
                                </td>
                                <td>
                                    <button id="seeSample2" class="btn1 btn-primary" <%=able%>>查看</button>
                                    &nbsp;<button id="addSample2" class="btn1 btn-primary" <%=able%>>添加</button>
                                </td>
                                <td style="display:<%=tr%>">
                                    <button id="updateMolecule2" class="btn1 btn-primary" <%=able%>>修改</button>
                                    &nbsp;<button id="moleculeDelete2" class="btn1 btn-danger" <%=able%>>删除</button>
                                </td>
                            </tr>
                            <tr id="d">
                                <td id="left"></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td>
                                    <button id="seePrim3" class="btn1 btn-primary" <%=able%>>查看</button>
                                    &nbsp;<button id="addPrim3" class="btn1 btn-primary" <%=able%>>添加</button>
                                </td>
                                <td>
                                    <button id="seeSample3" class="btn1 btn-primary" <%=able%>>查看</button>
                                    &nbsp;<button id="addSample3" class="btn1 btn-primary" <%=able%>>添加</button>
                                </td>
                                <td style="display:<%=tr%>">
                                    <button id="updateMolecule3" class="btn1 btn-primary" <%=able%>>修改</button>
                                    &nbsp;<button id="moleculeDelete3" class="btn1 btn-danger" <%=able%>>删除</button>
                                </td>
                            </tr>
                            <tr id="e">
                                <td id="left"></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td>
                                    <button id="seePrim4" class="btn1 btn-primary" <%=able%>>查看</button>
                                    &nbsp;<button id="addPrim4" class="btn1 btn-primary" <%=able%>>添加</button>
                                </td>
                                <td>
                                    <button id="seeSample4" class="btn1 btn-primary" <%=able%>>查看</button>
                                    &nbsp;<button id="addSample4" class="btn1 btn-primary" <%=able%>>添加</button>
                                </td>
                                <td style="display:<%=tr%>">
                                    <button id="updateMolecule4" class="btn1 btn-primary" <%=able%>>修改</button>
                                    &nbsp;<button id="moleculeDelete4" class="btn1 btn-danger" <%=able%>>删除</button>
                                </td>
                            </tr>
                        </table>
                        <button class="lastButton" id="moleculeLast">上一页</button>
                        <button class="nextButton" id="moleculeNext">下一页</button>
                    </div>
                    <%--引物--%>
                    <div id="primDiv" style="display:none">
                        <h4 class="thead">引物表 <br></h4>
                        <table class="table" id="Prim">
                            <tr>
                                <th>ID</th>
                                <th>引物类型</th>
                                <th>引物正序列</th>
                                <th>引物反序列</th>
                                <th style="display:<%=tr%>">操作</th>
                            </tr>
                            <tr id="a">
                                <td id="left"></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td style="display:<%=tr%>">
                                    <button id="updatePrim" class="btn1 btn-primary" <%=able%>>修改</button>
                                    &nbsp;<button id="primDelete" class="btn1 btn-danger" <%=able%>>删除</button>
                                </td>
                            </tr>
                            <tr id="b">
                                <td id="left"></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td style="display:<%=tr%>">
                                    <button id="updatePrim1" class="btn1 btn-primary" <%=able%>>修改</button>
                                    &nbsp;<button id="primDelete1" class="btn1 btn-danger" <%=able%>>删除</button>
                                </td>
                            </tr>
                            <tr id="c">
                                <td id="left"></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td style="display:<%=tr%>">
                                    <button id="updatePrim2" class="btn1 btn-primary" <%=able%>>修改</button>
                                    &nbsp;<button id="primDelete2" class="btn1 btn-danger" <%=able%>>删除</button>
                                </td>
                            </tr>
                            <tr id="d">
                                <td id="left"></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td style="display:<%=tr%>">
                                    <button id="updatePrim3" class="btn1 btn-primary" <%=able%>>修改</button>
                                    &nbsp;<button id="primDelete3" class="btn1 btn-danger" <%=able%>>删除</button>
                                </td>
                            </tr>
                            <tr id="e">
                                <td id="left"></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td style="display:<%=tr%>">
                                    <button id="updatePrim4" class="btn1 btn-primary" <%=able%>>修改</button>
                                    &nbsp;<button id="primDelete4" class="btn1 btn-danger" <%=able%>>删除</button>
                                </td>
                            </tr>
                        </table>
                        <button class="lastButton" id="primLast">上一页</button>
                        <button class="nextButton" id="primNext">下一页</button>
                    </div>
                    <%--单样本信息表--%>
                    <div id="sampleDiv" style="display:none">
                        <h4 class="thead">单样本信息表 <br></h4>
                        <table class="table" id="Sample">
                            <tr>
                                <th>ID</th>
                                <th>序列</th>
                                <th>基因型</th>
                                <th style="display:<%=tr%>">操作</th>
                            </tr>
                            <tr id="a">
                                <td id="left"></td>
                                <td></td>
                                <td></td>
                                <td style="display:<%=tr%>">
                                    <button id="updateSample" class="btn1 btn-primary" <%=able%>>修改</button>
                                    &nbsp;<button id="sampleDelete" class="btn1 btn-danger" <%=able%>>删除</button>
                                </td>
                            </tr>
                            <tr id="b">
                                <td id="left"></td>
                                <td></td>
                                <td></td>
                                <td style="display:<%=tr%>">
                                    <button id="updateSample1" class="btn1 btn-primary" <%=able%>>修改</button>
                                    &nbsp;<button id="sampleDelete1" class="btn1 btn-danger" <%=able%>>删除</button>
                                </td>
                            </tr>
                            <tr id="c">
                                <td id="left"></td>
                                <td></td>
                                <td></td>
                                <td style="display:<%=tr%>">
                                    <button id="updateSample2" class="btn1 btn-primary" <%=able%>>修改</button>
                                    &nbsp;<button id="sampleDelete2" class="btn1 btn-danger" <%=able%>>删除</button>
                                </td>
                            </tr>
                            <tr id="d">
                                <td id="left"></td>
                                <td></td>
                                <td></td>
                                <td style="display:<%=tr%>">
                                    <button id="updateSample3" class="btn1 btn-primary" <%=able%>>修改</button>
                                    &nbsp;<button id="sampleDelete3" class="btn1 btn-danger" <%=able%>>删除</button>
                                </td>
                            </tr>
                            <tr id="e">
                                <td id="left"></td>
                                <td></td>
                                <td></td>
                                <td style="display:<%=tr%>">
                                    <button id="updateSample4" class="btn1 btn-primary" <%=able%>>修改</button>
                                    &nbsp;<button id="sampleDelete4" class="btn1 btn-danger" <%=able%>>删除</button>
                                </td>
                            </tr>
                        </table>
                        <button class="lastButton" id="sampleLast">上一页</button>
                        <button class="nextButton" id="sampleNext">下一页</button>
                    </div>
                    <%--单群体计算数据--%>
                    <div id="colonyDiv" style="display:none">
                        <h4 class="thead">单群体计算数据表 <br></h4>
                        <table class="table" id="Colony">
                            <tr>
                                <th>ID</th>
                                <th>样本量</th>
                                <th>补充描述</th>
                                <th>数据类型</th>
                                <th>单倍体数量</th>
                                <th>突变位点总数量</th>
                                <th>单倍体多样性</th>
                                <th>核苷酸多样性</th>
                                <th>等位基因数量</th>
                                <th>观测杂合度Ho</th>
                                <th>预期杂合度He</th>
                                <th style="display:<%=tr%>">操作</th>
                            </tr>
                            <tr id="a">
                                <td id="left"></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td style="display:<%=tr%>">
                                    <button id="updateColony" class="btn1 btn-primary"<%=able%>>修改</button>
                                    &nbsp;<button id="colonyDelete" class="btn1 btn-danger"<%=able%>>删除</button>
                                </td>
                            </tr>
                            <tr id="b">
                                <td id="left"></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td style="display:<%=tr%>">
                                    <button id="updateColony1" class="btn1 btn-primary"<%=able%>>修改</button>
                                    &nbsp;<button id="colonyDelete1" class="btn1 btn-danger"<%=able%>>删除</button>
                                </td>
                            </tr>
                            <tr id="c">
                                <td id="left"></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td style="display:<%=tr%>">
                                    <button id="updateColony2" class="btn1 btn-primary"<%=able%>>修改</button>
                                    &nbsp;<button id="colonyDelete2" class="btn1 btn-danger"<%=able%>>删除</button>
                                </td>
                            </tr>
                            <tr id="d">
                                <td id="left"></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td style="display:<%=tr%>">
                                    <button id="updateColony3" class="btn1 btn-primary"<%=able%>>修改</button>
                                    &nbsp;<button id="colonyDelete3" class="btn1 btn-danger"<%=able%>>删除</button>
                                </td>
                            </tr>
                            <tr id="e">
                                <td id="left"></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td style="display:<%=tr%>">
                                    <button id="updateColony4" class="btn1 btn-primary"<%=able%>>修改</button>
                                    &nbsp;<button id="colonyDelete4" class="btn1 btn-danger"<%=able%>>删除</button>
                                </td>
                            </tr>
                        </table>
                        <button class="lastButton" id="colonyLast">上一页</button>
                        <button class="nextButton" id="colonyNext">下一页</button>
                    </div>
                </div>
            </div>

            <button id="add-child-sub" class="btn btn-primary">确定</button>
            <button id="update-data" class="btn btn-primary">确认修改</button>
            <!-- ---------------------黄文海增加--------------------- -->
            <div id="addWLE" style="display:none;margin-bottom: 150px;">
                <h4 class="thead">采样水层(上)</h4>
                <button id="addWLEupper" class="btn btn-primary" style="display:<%=tag%>" <%=able%>><span
                        class="glyphicon glyphicon-plus"></span>&nbsp添加采样水层
                </button>
                <table class="table" id="WLEupper" style="display:none">
                    <tr>
                        <th>深度</th>
                        <th>水温</th>
                        <th>水位</th>
                        <th>流量</th>
                        <th style="display:<%=tr%>">操作</th>
                    </tr>
                    <tr>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td style="display:<%=tr%>">

                            <button id="updateWLEupper" class="btn1 btn-primary" <%=able%>>修改</button>
                        </td>
                    </tr>
                </table>
                <h4 class="thead">采样水层(中)</h4>
                <button id="addWLEmiddle" class="btn btn-primary" style="display:<%=tag%>" <%=able%>><span
                        class="glyphicon glyphicon-plus"></span>&nbsp添加采样水层
                </button>
                <table class="table" id="WLEmiddle" style="display:none">
                    <tr>
                        <th>深度</th>
                        <th>水温</th>
                        <th>水位</th>
                        <th>流量</th>
                        <th style="display:<%=tr%>">操作</th>
                    </tr>
                    <tr>
                        <td>1</td>
                        <td>1</td>
                        <td>1</td>
                        <td>1</td>
                        <td style="display:<%=tr%>">
                            <button id="updateWLEmiddle" class="btn1 btn-primary" style="display:<%=tag%>" <%=able%>>
                                修改
                            </button>
                        </td>
                    </tr>
                </table>
                <h4 class="thead">采样水层(下)</h4>
                <button id="addWLElow" class="btn btn-primary" style="display:<%=tag%>" <%=able%>><span
                        class="glyphicon glyphicon-plus"></span>&nbsp添加采样水层
                </button>
                <table class="table" id="WLElow" style="display:none">
                    <tr>
                        <th>深度</th>
                        <th>水温</th>
                        <th>水位</th>
                        <th>流量</th>
                        <th style="display:<%=tr%>">操作</th>
                    </tr>
                    <tr>
                        <td>1</td>
                        <td>1</td>
                        <td>1</td>
                        <td>1</td>
                        <td style="display:<%=tr%>">
                            <button id="updateWLElow" class="btn1 btn-primary"<%=able%> >修改</button>
                        </td>
                    </tr>
                </table>

                <h4 class="thead">混合采样</h4>
                <button id="addWLEmix" class="btn btn-primary" style="display:<%=tag%>" <%=able%>><span
                        class="glyphicon glyphicon-plus"></span>&nbsp添加混合采样
                </button>
                <table class="table" id="WLEmix" style="display:none">
                    <tr>
                        <th>深度</th>
                        <th>水温</th>
                        <th>水位</th>
                        <th>流量</th>
                        <th style="display:<%=tr%>">操作</th>
                    </tr>
                    <tr>
                        <td>1</td>
                        <td>1</td>
                        <td>1</td>
                        <td>1</td>
                        <td style="display:<%=tr%>">
                            <button id="updateWLEmix" class="btn1 btn-primary" <%=able%> >修改</button>
                        </td>
                    </tr>
                </table>
            </div>


            <!-- ---------------------黄文海增加--------------------- -->

            <!-- ---------------------孙梦海增加--------------------- -->
            <!-- 断面子表格  -->
            <div class="surface">
                <h4 class="thead">沉积物、浮游生物、底栖生物表 <br>
                    <button id="add-surface-sed" class="btn btn-primary" <%=able%>><span
                            class="glyphicon glyphicon-plus"></span>&nbsp添加沉积物
                    </button>
                    <button id="add-surface-zoo" class="btn btn-primary" <%=able%>><span
                            class="glyphicon glyphicon-plus"></span>&nbsp添加浮游动物
                    </button>
                    <button id="add-surface-phy" class="btn btn-primary" <%=able%>><span
                            class="glyphicon glyphicon-plus"></span>&nbsp添加浮游植物
                    </button>
                    <button id="add-surface-ben" class="btn btn-primary" <%=able%>><span
                            class="glyphicon glyphicon-plus"></span>&nbsp添加底栖生物
                    </button>
                </h4>
                <table class="table" id="sed-fea">
                    <tr>
                        <th>编号</th>
                        <th>生物量</th>
                        <th>数量</th>
                        <th>照片</th>
                        <th style="display:<%=tr%>">操作</th>
                        <th>优势种</th>
                    </tr>
                </table>
                <!-- 浮游生物、底栖生物优势种  -->
                <div id="pfeature-table">
                    <h4 class="thead">优势浮游生物、底栖生物表<br>
                        <span style="font-weight: 400;">已选中：<small><i style="color: red;" class="Fname">浮游动物</i></small>&nbsp;
					<button id="add-surface-pfeature" class="btn btn-primary" <%=able%>><span
                            class="glyphicon glyphicon-plus"></span>&nbsp添加优势种</button>
                    </h4>
                    <table class="table" id="pfea">
                        <tr>
                            <th>编号</th>
                            <th>名称</th>
                            <th>生物量</th>
                            <th>数量</th>
                            <th>照片</th>
                            <th style="display:<%=tr%>">操作</th>
                        </tr>
                    </table>
                    <button class="lastButton" id="prevPage">上一页</button><!--
		        -->
                    <button class="nextButton" id="nextPage">下一页</button>
                </div>
            </div>
            <div id="modal-sediment" class="modal">
                <div class="container">
                    <p id="modal-heading">
                        <span class="title">添加沉积物</span>
                        <span class="close">关闭</span>
                    </p>
                    <form id="form-sediment" class="modal-form" enctype="multipart/form-data">
                        <span>照片：</span><input type="file" id="sediment-Photo" name="Photo" multiple="true"
                                               accept="image/*" style="display:inline-block;height:26px"><br>
                        <button id="modal-submit" class="submit btn btn-primary" type="button" <%=able%>>确认提交</button>
                        <button id="modal-submit" class="alter btn btn-primary" type="button" <%=able%>>确认修改</button>
                    </form>
                </div>
            </div>
            <div id="modal-feature" class="modal">
                <div class="container">
                    <p id="modal-heading">
                        <span class="title">添加浮游动物</span>
                        <span class="close">关闭</span>
                    </p>
                    <form id="feature_check" class="modal-form" enctype="multipart/form-data">
                        <span>数量：</span><input type="text" name="Quality" id="feature-Quality" maxlength="10"
                                               placeholder="10位以内数字"><span id="munit1"
                                                                           class="munit">ind./L</span></input><br>
                        <span>生物量：</span><input type="text" id="feature-Biomass" name="Biomass" maxlength="5"
                                                placeholder="1-5位数字"><span id="munit2" class="munit">mg/L</span></input>
                        <br>
                        <span>照片：</span><input type="file" id="feature-Photo" name="Photo" multiple="true"
                                               accept="image/*" style="display:inline-block;height:26px"><br>
                        <button id="modal-submit" class="submit btn btn-primary" type="button" <%=able%>>确认提交</button>
                        <button id="modal-submit" class="alter btn btn-primary" type="button" <%=able%>>确认修改</button>
                    </form>
                </div>
            </div>
            <div id="modal-pfeature" class="modal">
                <div class="container">
                    <p id="modal-heading">
                        <span class="title">添加浮游动物优势种</span>
                        <span class="close">关闭</span>
                    </p>
                    <form id="pfeature_check" method="get" class="modal-form" action="" enctype="multipart/form-data">
                        <span>名称：</span><input type="text" id="pfeature-Name" name="Name" maxlength="30"
                                               placeholder="30位以内的字符"><font>&nbsp*</font></input><br>
                        <span>数量：</span><input type="text" id="pfeature-Quality" name="Quality" maxlength="10"
                                               placeholder="10位内数字"><span id="munit3"
                                                                          class="munit">ind./L</span></input><br>
                        <span>生物量：</span><input type="text" id="pfeature-Biomass" name="Biomass" maxlength="5"
                                                placeholder="1-5位数字"><span id="munit4" class="munit">mg/L</span></input>
                        <br>
                        <span>照片：</span><input type="file" id="pfeature-Photo" name="Photo" multiple="true"
                                               accept="image/*" style="display:inline-block;height:26px"><br>
                        <button id="modal-submit" class="submit btn btn-primary" type="button" <%=able%>>确认提交</button>
                        <button id="modal-submit" class="alter btn btn-primary" type="button" <%=able%>>确认修改</button>
                    </form>
                </div>
            </div>


            <!-- ---------------------孙梦海增加--------------------- -->
        </div>
    </div>
    <script type="text/javascript">

        new PCAS("province", "city", "area");

    </script>
</body>
</html>

